| // 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 GPUSamplerDescriptor : GPUObjectDescriptorBase { |
| GPUAddressMode addressModeU = "clamp-to-edge"; |
| GPUAddressMode addressModeV = "clamp-to-edge"; |
| GPUAddressMode addressModeW = "clamp-to-edge"; |
| GPUFilterMode magFilter = "nearest"; |
| GPUFilterMode minFilter = "nearest"; |
| GPUFilterMode mipmapFilter = "nearest"; |
| float lodMinClamp = 0; |
| float lodMaxClamp = 0xffffffff; |
| GPUCompareFunction compare = "never"; |
| }; |
| |
| enum GPUAddressMode { |
| "clamp-to-edge", |
| "repeat", |
| "mirror-repeat" |
| }; |
| |
| enum GPUFilterMode { |
| "nearest", |
| "linear" |
| }; |
| |
| enum GPUCompareFunction { |
| "never", |
| "less", |
| "equal", |
| "less-equal", |
| "greater", |
| "not-equal", |
| "greater-equal", |
| "always" |
| }; |