Struct nannou::wgpu::TextureFormatFeatures [−]
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: TextureUsages
Valid bits for TextureDescriptor::Usage
provided for format creation.
flags: TextureFormatFeatureFlags
Additional property flags for the format.
filterable: bool
If filterable
is false, the texture can’t be sampled with a filtering sampler.
This may overwrite TextureSampleType::Float.filterable
Trait Implementations
impl Clone for TextureFormatFeatures
impl Clone for TextureFormatFeatures
pub fn clone(&self) -> TextureFormatFeatures
pub fn clone(&self) -> TextureFormatFeatures
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for TextureFormatFeatures
impl Debug for TextureFormatFeatures
impl Hash for TextureFormatFeatures
impl Hash for TextureFormatFeatures
pub fn eq(&self, other: &TextureFormatFeatures) -> bool
pub fn eq(&self, other: &TextureFormatFeatures) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &TextureFormatFeatures) -> bool
pub fn ne(&self, other: &TextureFormatFeatures) -> bool
This method tests for !=
.
impl Copy for TextureFormatFeatures
impl Eq for TextureFormatFeatures
impl StructuralEq for TextureFormatFeatures
impl StructuralPartialEq for TextureFormatFeatures
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
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more
Compare self to key
and return true
if they are equal.