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