GPURenderPipelineDescriptor


public final class GPURenderPipelineDescriptor


Describes a render pipeline.

Summary

Nested types

Builder for GPURenderPipelineDescriptor.

Public constructors

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

Public methods

final GPUDepthStencilState
final GPUFragmentState

The fragment shader stage configuration.

final String

A human-readable label for debugging.

final GPUPipelineLayout

The pipeline layout.

final @NonNull GPUMultisampleState

The multisampling state.

final @NonNull GPUPrimitiveState

The primitive assembly and rasterization state.

final @NonNull GPUVertexState

The vertex shader stage configuration.

final void
final void

The fragment shader stage configuration.

final void

A human-readable label for debugging.

final void

The pipeline layout.

final void

The multisampling state.

final void

The primitive assembly and rasterization state.

final void

The vertex shader stage configuration.

Public constructors

GPURenderPipelineDescriptor

Added in 1.0.0-alpha04
public GPURenderPipelineDescriptor(
    @NonNull GPUVertexState vertex,
    String label,
    GPUPipelineLayout layout,
    @NonNull GPUPrimitiveState primitive,
    GPUDepthStencilState depthStencil,
    @NonNull GPUMultisampleState multisample,
    GPUFragmentState fragment
)

Public methods

getDepthStencil

Added in 1.0.0-alpha04
public final GPUDepthStencilState getDepthStencil()

getFragment

Added in 1.0.0-alpha04
public final GPUFragmentState getFragment()

The fragment shader stage configuration.

getLabel

Added in 1.0.0-alpha04
public final String getLabel()

A human-readable label for debugging.

getLayout

Added in 1.0.0-alpha04
public final GPUPipelineLayout getLayout()

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

getMultisample

Added in 1.0.0-alpha04
public final @NonNull GPUMultisampleState getMultisample()

The multisampling state.

getPrimitive

Added in 1.0.0-alpha04
public final @NonNull GPUPrimitiveState getPrimitive()

The primitive assembly and rasterization state.

getVertex

Added in 1.0.0-alpha04
public final @NonNull GPUVertexState getVertex()

The vertex shader stage configuration.

setDepthStencil

Added in 1.0.0-alpha04
public final void setDepthStencil(GPUDepthStencilState depthStencil)

setFragment

Added in 1.0.0-alpha04
public final void setFragment(GPUFragmentState fragment)

The fragment shader stage configuration.

setLabel

Added in 1.0.0-alpha04
public final void setLabel(String label)

A human-readable label for debugging.

setLayout

Added in 1.0.0-alpha04
public final void setLayout(GPUPipelineLayout layout)

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

setMultisample

Added in 1.0.0-alpha04
public final void setMultisample(@NonNull GPUMultisampleState multisample)

The multisampling state.

setPrimitive

Added in 1.0.0-alpha04
public final void setPrimitive(@NonNull GPUPrimitiveState primitive)

The primitive assembly and rasterization state.

setVertex

Added in 1.0.0-alpha04
public final void setVertex(@NonNull GPUVertexState vertex)

The vertex shader stage configuration.