| // Copyright 2023 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| typedef [EnforceRange] unsigned long GPUHeapPropertyFlags; |
| [ |
| RuntimeEnabled=WebGPUDeveloperFeatures, |
| Exposed=(Window, Worker), |
| SecureContext |
| ] namespace GPUHeapProperty { |
| const GPUFlagsConstant DEVICE_LOCAL = 1; |
| const GPUFlagsConstant HOST_VISIBLE = 2; |
| const GPUFlagsConstant HOST_COHERENT = 4; |
| const GPUFlagsConstant HOST_UNCACHED = 8; |
| const GPUFlagsConstant HOST_CACHED = 16; |
| }; |