Trait bevy::render::texture::TextureFormatPixelInfo
[−]pub trait TextureFormatPixelInfo {
fn pixel_info(&self) -> PixelInfo;
fn pixel_size(&self) -> usize { ... }
}
Expand description
Extends the wgpu TextureFormat
with information about the pixel.
Required methods
fn pixel_info(&self) -> PixelInfo
fn pixel_info(&self) -> PixelInfo
Returns the pixel information of the format.
Provided methods
fn pixel_size(&self) -> usize
fn pixel_size(&self) -> usize
Returns the size of a pixel of the format.