Function wgpu::core::validation::check_texture_usage
pub fn check_texture_usage(
actual: TextureUsages,
expected: TextureUsages
) -> Result<(), MissingTextureUsageError>
Available on
wgpu_core
only.Expand description
Checks that the given texture usage contains the required texture usage, returns an error otherwise.