wgpu_core::validation

Function check_texture_usage

Source
pub fn check_texture_usage(
    actual: TextureUsages,
    expected: TextureUsages,
) -> Result<(), MissingTextureUsageError>
Expand description

Checks that the given texture usage contains the required texture usage, returns an error otherwise.