wgpu_core::validation

Function 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.