Function wgpu::core::validation::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.