Trait bevy_render::texture::TextureFormatPixelInfo
source · 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
sourcefn pixel_info(&self) -> PixelInfo
fn pixel_info(&self) -> PixelInfo
Returns the pixel information of the format.
Provided Methods
sourcefn pixel_size(&self) -> usize
fn pixel_size(&self) -> usize
Returns the size of a pixel of the format.