RenderPipelineDescriptor


class RenderPipelineDescriptor


A descriptor for creating a render pipeline.

Summary

Public constructors

RenderPipelineDescriptor(
    vertex: VertexState,
    label: String?,
    layout: GPUPipelineLayout?,
    primitive: PrimitiveState,
    depthStencil: DepthStencilState?,
    multisample: MultisampleState,
    fragment: FragmentState?
)

Public properties

DepthStencilState?
FragmentState?

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.

MultisampleState

The configuration for multisampling.

PrimitiveState

The configuration for primitive assembly.

VertexState

The configuration for the vertex stage.

Public constructors

RenderPipelineDescriptor

Added in 1.0.0-alpha01
RenderPipelineDescriptor(
    vertex: VertexState,
    label: String? = null,
    layout: GPUPipelineLayout? = null,
    primitive: PrimitiveState = PrimitiveState(),
    depthStencil: DepthStencilState? = null,
    multisample: MultisampleState = MultisampleState(),
    fragment: FragmentState? = null
)

Public properties

depthStencil

Added in 1.0.0-alpha01
var depthStencilDepthStencilState?

fragment

Added in 1.0.0-alpha01
var fragmentFragmentState?

The configuration for the fragment stage and color targets, if required.

label

Added in 1.0.0-alpha01
var labelString?

The label for the render pipeline.

layout

Added in 1.0.0-alpha01
var layoutGPUPipelineLayout?

The layout of the bind groups and push constants used by the pipeline.

multisample

Added in 1.0.0-alpha01
var multisampleMultisampleState

The configuration for multisampling.

primitive

Added in 1.0.0-alpha01
var primitivePrimitiveState

The configuration for primitive assembly.

vertex

Added in 1.0.0-alpha01
var vertexVertexState

The configuration for the vertex stage.