Trait bevy_render::texture::TextureFormatPixelInfo

source ·
pub trait TextureFormatPixelInfo {
    // Required method
    fn pixel_size(&self) -> usize;
}
Expand description

Extends the wgpu TextureFormat with information about the pixel.

Required Methods§

source

fn pixel_size(&self) -> usize

Returns the size of a pixel in bytes of the format.

Implementors§