GPURenderPipelineDescriptor


class GPURenderPipelineDescriptor


Describes a render pipeline.

Summary

Public constructors

GPURenderPipelineDescriptor(
    vertex: GPUVertexState,
    label: String?,
    layout: GPUPipelineLayout?,
    primitive: GPUPrimitiveState,
    depthStencil: GPUDepthStencilState?,
    multisample: GPUMultisampleState,
    fragment: GPUFragmentState?
)

Public properties

GPUDepthStencilState?
GPUFragmentState?

The fragment shader stage configuration.

String?

A human-readable label for debugging.

GPUPipelineLayout?

The pipeline layout.

GPUMultisampleState

The multisampling state.

GPUPrimitiveState

The primitive assembly and rasterization state.

GPUVertexState

The vertex shader stage configuration.

Public constructors

GPURenderPipelineDescriptor

Added in 1.0.0-alpha04
GPURenderPipelineDescriptor(
    vertex: GPUVertexState,
    label: String? = null,
    layout: GPUPipelineLayout? = null,
    primitive: GPUPrimitiveState = GPUPrimitiveState(),
    depthStencil: GPUDepthStencilState? = null,
    multisample: GPUMultisampleState = GPUMultisampleState(),
    fragment: GPUFragmentState? = null
)

Public properties

depthStencil

Added in 1.0.0-alpha04
var depthStencilGPUDepthStencilState?

fragment

Added in 1.0.0-alpha04
var fragmentGPUFragmentState?

The fragment shader stage configuration.

label

Added in 1.0.0-alpha04
var labelString?

A human-readable label for debugging.

layout

Added in 1.0.0-alpha04
var layoutGPUPipelineLayout?

The pipeline layout. If {@code null}, a default layout is inferred.

multisample

Added in 1.0.0-alpha04
var multisampleGPUMultisampleState

The multisampling state.

primitive

Added in 1.0.0-alpha04
var primitiveGPUPrimitiveState

The primitive assembly and rasterization state.

vertex

Added in 1.0.0-alpha04
var vertexGPUVertexState

The vertex shader stage configuration.