Struct wgpu_types::TextureFormatFeatures [−][src]
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for TextureFormatFeaturesimpl Send for TextureFormatFeaturesimpl Sync for TextureFormatFeaturesimpl Unpin for TextureFormatFeaturesimpl UnwindSafe for TextureFormatFeaturesBlanket Implementations
Mutably borrows from an owned value. Read more