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-alpha06
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-alpha06
var depthStencil: GPUDepthStencilState?

fragment

Added in 1.0.0-alpha06
var fragment: GPUFragmentState?

The fragment shader stage configuration.

label

Added in 1.0.0-alpha06
var label: String?

A human-readable label for debugging.

layout

Added in 1.0.0-alpha06
var layout: GPUPipelineLayout?

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

multisample

Added in 1.0.0-alpha06
var multisample: GPUMultisampleState

The multisampling state.

primitive

Added in 1.0.0-alpha06
var primitive: GPUPrimitiveState

The primitive assembly and rasterization state.

vertex

Added in 1.0.0-alpha06
var vertex: GPUVertexState

The vertex shader stage configuration.