pub trait QueryExt {
// Required methods
fn format(&self) -> PixelFormatKind;
fn access(&self) -> TextureAccess;
fn size(&self) -> Size;
}
Expand description
An extension for Texture
to query the texture information.
Required Methods§
Sourcefn format(&self) -> PixelFormatKind
fn format(&self) -> PixelFormatKind
Returns the format of the texture.
Sourcefn access(&self) -> TextureAccess
fn access(&self) -> TextureAccess
Returns the access of the texture.