Enum GLFormat
Source#[non_exhaustive]pub enum GLFormat {
Show 19 variants
    Luminance,
    Alpha,
    LuminanceAlpha,
    Red,
    R8,
    Rg,
    Rg8,
    Rgb,
    Rgb8,
    Rgb565,
    Rgb16,
    Rgba,
    Rgba8,
    Rgba16,
    DepthComponent16,
    Depth24Stencil8,
    Rgb10A2,
    R16,
    Rg16,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Luminance
Single component replicated across R, G, and B textures components
Alpha
Single component stored in the A texture component
LuminanceAlpha
Red
Single component stored in the R texture component
R8
Single 8-bit component stored in the R texture component
Rg
Two components stored in the R and G texture components
Rg8
Two 8-bit components stored in the R and G texture components
Rgb
Three components stored in the R, G, and B texture components
Rgb8
Three 8-bit components stored in the R, G, and B texture components
Rgb565
Three components of bit depth 5, 6 and 5 stored in the R, G, and B texture components respectively.
Rgb16
Three 16-bit components stored in the R, G, and B texture components
Rgba
Four components stored in the R, G, B, and A texture components respectively.
Rgba8
Four 8-bit components stored in the R, G, B, and A texture components respectively.
Rgba16
Four 16-bit components stored in the R, G, B, and A texture components respectively.
DepthComponent16
A single 16-bit component for depth information.
Depth24Stencil8
A 24-bit component for depth information and a 8-bit component for stencil informat.
Rgb10A2
R16
Single 16-bit component stored in the R texture component
Rg16
Two 16-bit components stored in the R and G texture components
Implementations§
Source§impl GLFormat
 
impl GLFormat
pub fn from_video_info( context: &impl IsA<GLContext>, vinfo: &VideoInfo, plane: u32, ) -> GLFormat
pub fn is_supported(context: &impl IsA<GLContext>, format: GLFormat) -> bool
pub fn n_components(self) -> u32
pub fn type_from_sized_gl_format(self) -> (GLFormat, u32)
pub fn type_n_bytes(format: u32, type_: u32) -> u32
Trait Implementations§
Source§impl<'a> FromValue<'a> for GLFormat
 
impl<'a> FromValue<'a> for GLFormat
Source§type Checker = GenericValueTypeChecker<GLFormat>
 
type Checker = GenericValueTypeChecker<GLFormat>
Source§unsafe fn from_value(value: &'a Value) -> Self
 
unsafe fn from_value(value: &'a Value) -> Self
Value. Read moreSource§impl HasParamSpec for GLFormat
 
impl HasParamSpec for GLFormat
Source§impl Ord for GLFormat
 
impl Ord for GLFormat
Source§impl PartialOrd for GLFormat
 
impl PartialOrd for GLFormat
Source§impl StaticType for GLFormat
 
impl StaticType for GLFormat
Source§fn static_type() -> Type
 
fn static_type() -> Type
Self.impl Copy for GLFormat
impl Eq for GLFormat
impl StructuralPartialEq for GLFormat
Auto Trait Implementations§
impl Freeze for GLFormat
impl RefUnwindSafe for GLFormat
impl Send for GLFormat
impl Sync for GLFormat
impl Unpin for GLFormat
impl UnwindSafe for GLFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> IntoClosureReturnValue for T
 
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PropertyGet for Twhere
    T: HasParamSpec,
 
impl<T> PropertyGet for Twhere
    T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
    T: StaticType,
 
impl<T> StaticTypeExt for Twhere
    T: StaticType,
Source§fn ensure_type()
 
fn ensure_type()
Source§impl<T> ToSendValue for T
 
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
 
fn to_send_value(&self) -> SendValue
SendValue clone of self.