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

// Copyright 2020 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/#typedefdef-gpumapmodeflags

typedef [EnforceRange] unsigned long GPUMapModeFlags;
[
    Exposed=(Window, Worker),
    SecureContext
] namespace GPUMapMode {
    const GPUFlagsConstant READ  = 0x0001;
    const GPUFlagsConstant WRITE = 0x0002;
};