Struct webrender::FormatDesc
source · pub struct FormatDesc {
pub internal: GLenum,
pub external: GLuint,
pub read: GLuint,
pub pixel_type: GLuint,
}
Fields§
§internal: GLenum
Format the texel data is internally stored in within a texture.
external: GLuint
Format that we expect the data to be provided when filling the texture.
read: GLuint
Format to read the texels as, so that they can be uploaded as external
later on.
pixel_type: GLuint
Associated pixel type.
Auto Trait Implementations§
impl Freeze for FormatDesc
impl RefUnwindSafe for FormatDesc
impl Send for FormatDesc
impl Sync for FormatDesc
impl Unpin for FormatDesc
impl UnwindSafe for FormatDesc
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 more