RenderPipelineDescriptor¶
data class RenderPipelineDescriptor(
val vertex: GPUVertexState,
val primitive: GPUPrimitiveState = PrimitiveState(),
val depthStencil: GPUDepthStencilState? = null,
val multisample: GPUMultisampleState = MultisampleState(),
val fragment: GPUFragmentState? = null,
val layout: GPUPipelineLayout? = null,
val label: String = ""
) : GPURenderPipelineDescriptor
Constructors¶
RenderPipelineDescriptor¶
constructor(
vertex: GPUVertexState,
primitive: GPUPrimitiveState = PrimitiveState(),
depthStencil: GPUDepthStencilState? = null,
multisample: GPUMultisampleState = MultisampleState(),
fragment: GPUFragmentState? = null,
layout: GPUPipelineLayout? = null,
label: String = ""
)
Properties¶
depthStencil¶
open override val depthStencil: GPUDepthStencilState?
Describes the optional depth-stencil properties, including the testing, operations, and bias.
fragment¶
open override val fragment: GPUFragmentState?
Describes the fragment shader entry point of the pipeline and its output colors. If not provided, the § 23.2.8 No Color Output mode is enabled.
label¶
layout¶
open override val layout: GPUPipelineLayout?
multisample¶
open override val multisample: GPUMultisampleState
Describes the multi-sampling properties of the pipeline.
primitive¶
open override val primitive: GPUPrimitiveState
Describes the primitive-related properties of the pipeline.
vertex¶
open override val vertex: GPUVertexState
Describes the vertex shader entry point of the pipeline and its input buffer layouts.