#[repr(C)]pub enum ImageBufferKind {
Texture2D = 0,
TextureRect = 1,
TextureExternal = 2,
}Expand description
Specifies the type of texture target in driver terms.
Variants§
Texture2D = 0
Standard texture. This maps to GL_TEXTURE_2D in OpenGL.
TextureRect = 1
Rectangle texture. This maps to GL_TEXTURE_RECTANGLE in OpenGL. This is similar to a standard texture, with a few subtle differences (no mipmaps, non-power-of-two dimensions, different coordinate space) that make it useful for representing the kinds of textures we use in WebRender. See https://www.khronos.org/opengl/wiki/Rectangle_Texture for background on Rectangle textures.
TextureExternal = 2
External texture. This maps to GL_TEXTURE_EXTERNAL_OES in OpenGL, which is an extension. This is used for image formats that OpenGL doesn’t understand, particularly YUV. See https://www.khronos.org/registry/OpenGL/extensions/OES/OES_EGL_image_external.txt
Trait Implementations§
Source§impl Clone for ImageBufferKind
impl Clone for ImageBufferKind
Source§fn clone(&self) -> ImageBufferKind
fn clone(&self) -> ImageBufferKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImageBufferKind
impl Debug for ImageBufferKind
Source§impl Hash for ImageBufferKind
impl Hash for ImageBufferKind
Source§impl Ord for ImageBufferKind
impl Ord for ImageBufferKind
Source§fn cmp(&self, other: &ImageBufferKind) -> Ordering
fn cmp(&self, other: &ImageBufferKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ImageBufferKind
impl PartialEq for ImageBufferKind
Source§impl PartialOrd for ImageBufferKind
impl PartialOrd for ImageBufferKind
impl Copy for ImageBufferKind
impl Eq for ImageBufferKind
impl StructuralPartialEq for ImageBufferKind
Auto Trait Implementations§
impl Freeze for ImageBufferKind
impl RefUnwindSafe for ImageBufferKind
impl Send for ImageBufferKind
impl Sync for ImageBufferKind
impl Unpin for ImageBufferKind
impl UnwindSafe for ImageBufferKind
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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