chromium/third_party/blink/renderer/modules/webgpu/gpu_buffer_usage.idl

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// https://gpuweb.github.io/gpuweb/

typedef [EnforceRange] unsigned long GPUBufferUsageFlags;
[
    Exposed=(Window, Worker),
    SecureContext
] namespace GPUBufferUsage {
    const GPUFlagsConstant MAP_READ = 1;
    const GPUFlagsConstant MAP_WRITE = 2;
    const GPUFlagsConstant COPY_SRC = 4;
    const GPUFlagsConstant COPY_DST = 8;
    const GPUFlagsConstant INDEX = 16;
    const GPUFlagsConstant VERTEX = 32;
    const GPUFlagsConstant UNIFORM = 64;
    const GPUFlagsConstant STORAGE = 128;
    const GPUFlagsConstant INDIRECT = 256;
    const GPUFlagsConstant QUERY_RESOLVE = 512;
};