[][src]Enum azul_core::app_resources::TextureTarget

pub enum TextureTarget {
    Default,
    Array,
    Rect,
    External,
}

Specifies the type of texture target in driver terms.

Variants

Default

Standard texture. This maps to GL_TEXTURE_2D in OpenGL.

Array

Array texture. This maps to GL_TEXTURE_2D_ARRAY in OpenGL. See https://www.khronos.org/opengl/wiki/Array_Texture for background on Array textures.

Rect

Rectange 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.

External

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

impl Clone for TextureTarget[src]

impl Copy for TextureTarget[src]

impl Debug for TextureTarget[src]

impl Eq for TextureTarget[src]

impl Hash for TextureTarget[src]

impl Ord for TextureTarget[src]

impl PartialEq<TextureTarget> for TextureTarget[src]

impl PartialOrd<TextureTarget> for TextureTarget[src]

impl StructuralEq for TextureTarget[src]

impl StructuralPartialEq for TextureTarget[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.