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§

source

fn format(&self) -> PixelFormatKind

Returns the format of the texture.

source

fn access(&self) -> TextureAccess

Returns the access of the texture.

source

fn size(&self) -> Size

Returns the size of the texture.

Implementors§