Struct wgpu_types::TextureFormatFeatures
source · pub struct TextureFormatFeatures {
pub allowed_usages: TextureUsage,
pub flags: TextureFormatFeatureFlags,
pub filterable: bool,
}Expand description
Features supported by a given texture format
Features are defined by WebGPU specification unless Features::TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES is enabled.
Fields§
§allowed_usages: TextureUsageValid bits for TextureDescriptor::Usage provided for format creation.
flags: TextureFormatFeatureFlagsAdditional property flags for the format.
filterable: boolIf filterable is false, the texture can’t be sampled with a filtering sampler.
This may overwrite TextureSampleType::Float.filterable
Trait Implementations§
source§impl Clone for TextureFormatFeatures
impl Clone for TextureFormatFeatures
source§fn clone(&self) -> TextureFormatFeatures
fn clone(&self) -> TextureFormatFeatures
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more