TextureInternalFormat

Trait TextureInternalFormat 

Source
pub trait TextureInternalFormat {
    type T: ArrayView;

    const INTERNAL_FORMAT: i32;
    const FORMAT: u32;
}
Expand description

WebGL2 texture internal format.

This trait gives idiomatic Rust usage of WebGL2 texture formats. The trait gives the WebGL2 constants that list the corresponding internal format and format, and a Rust type that can be converted to a JS type, using the ArrayView trait.

Required Associated Constants§

Source

const INTERNAL_FORMAT: i32

WebGL2 constant that indicates the internal format.

Source

const FORMAT: u32

WebGL2 constant that indicates the format.

Required Associated Types§

Source

type T: ArrayView

Native Rust type corresponding to this format.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§