| // 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 GPURenderPipelineDescriptor : GPUPipelineDescriptorBase { |
| required GPUProgrammableStageDescriptor vertexStage; |
| GPUProgrammableStageDescriptor fragmentStage; |
| |
| required GPUPrimitiveTopology primitiveTopology; |
| GPURasterizationStateDescriptor rasterizationState = {}; |
| required sequence<GPUColorStateDescriptor> colorStates; |
| GPUDepthStencilStateDescriptor depthStencilState; |
| GPUVertexInputDescriptor vertexInput = {}; |
| |
| unsigned long sampleCount = 1; |
| |
| unsigned long sampleMask = 0xFFFFFFFF; |
| boolean alphaToCoverageEnabled = false; |
| }; |
| |
| enum GPUPrimitiveTopology { |
| "point-list", |
| "line-list", |
| "line-strip", |
| "triangle-list", |
| "triangle-strip" |
| }; |