Struct wgpu_types::TextureFormatFeatures [−][src]
pub struct TextureFormatFeatures {
pub allowed_usages: TextureUsages,
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: TextureUsagesValid 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 TextureFormatFeatures
impl Send for TextureFormatFeatures
impl Sync for TextureFormatFeatures
impl Unpin for TextureFormatFeatures
impl UnwindSafe for TextureFormatFeatures
Blanket Implementations
Mutably borrows from an owned value. Read more
