Function wgpu::core::validation::check_buffer_usage
source · pub fn check_buffer_usage(
actual: BufferUsages,
expected: BufferUsages
) -> Result<(), MissingBufferUsageError>
Expand description
Checks that the given buffer usage contains the required buffer usage, returns an error otherwise.