| // Copyright 2019 The Chromium Authors. All rights reserved. |
| // 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/ |
| |
| dictionary GPUTextureViewDescriptor : GPUObjectDescriptorBase { |
| GPUTextureFormat format; |
| GPUTextureViewDimension dimension; |
| GPUTextureAspect aspect = "all"; |
| GPUIntegerCoordinate baseMipLevel = 0; |
| GPUIntegerCoordinate mipLevelCount = 0; |
| GPUIntegerCoordinate baseArrayLayer = 0; |
| GPUIntegerCoordinate arrayLayerCount = 0; |
| }; |
| |
| enum GPUTextureViewDimension { |
| "1d", |
| "2d", |
| "2d-array", |
| "cube", |
| "cube-array", |
| "3d" |
| }; |
| |
| enum GPUTextureAspect { |
| "all", |
| "stencil-only", |
| "depth-only" |
| }; |