GPURenderPipelineDescriptor
class GPURenderPipelineDescriptor
A descriptor for creating a render pipeline.
Summary
Public constructors |
|---|
GPURenderPipelineDescriptor( |
Public properties |
|
|---|---|
GPUDepthStencilState? |
|
GPUFragmentState? |
The configuration for the fragment stage and color targets, if required. |
String? |
The label for the render pipeline. |
GPUPipelineLayout? |
The layout of the bind groups and push constants used by the pipeline. |
GPUMultisampleState |
The configuration for multisampling. |
GPUPrimitiveState |
The configuration for primitive assembly. |
GPUVertexState |
The configuration for the vertex stage. |
Public constructors
GPURenderPipelineDescriptor
GPURenderPipelineDescriptor(
vertex: GPUVertexState,
label: String? = null,
layout: GPUPipelineLayout? = null,
primitive: GPUPrimitiveState = GPUPrimitiveState(),
depthStencil: GPUDepthStencilState? = null,
multisample: GPUMultisampleState = GPUMultisampleState(),
fragment: GPUFragmentState? = null
)
Public properties
fragment
var fragment: GPUFragmentState?
The configuration for the fragment stage and color targets, if required.
layout
var layout: GPUPipelineLayout?
The layout of the bind groups and push constants used by the pipeline.
multisample
var multisample: GPUMultisampleState
The configuration for multisampling.
primitive
var primitive: GPUPrimitiveState
The configuration for primitive assembly.