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§
Sourceconst INTERNAL_FORMAT: i32
const INTERNAL_FORMAT: i32
WebGL2 constant that indicates the internal format.
Required Associated Types§
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.