pub trait TextureSrgbViewFormats {
// Required method
fn srgb_view_formats(&self) -> &'static [TextureFormat];
}Expand description
Trait used to provide texture srgb view formats with static lifetime for TextureDescriptor.view_formats.
Required Methods§
Sourcefn srgb_view_formats(&self) -> &'static [TextureFormat]
fn srgb_view_formats(&self) -> &'static [TextureFormat]
Returns the srgb view formats for a type.
Implementations on Foreign Types§
Source§impl TextureSrgbViewFormats for TextureFormat
impl TextureSrgbViewFormats for TextureFormat
Source§fn srgb_view_formats(&self) -> &'static [TextureFormat]
fn srgb_view_formats(&self) -> &'static [TextureFormat]
Returns the srgb view formats if the format has an srgb variant, otherwise returns an empty slice.
The return result covers all the results of TextureFormat::add_srgb_suffix.