GPURenderPipelineDescriptor


public final class GPURenderPipelineDescriptor


A descriptor for creating a render pipeline.

Summary

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 configuration for the fragment stage and color targets, if required.

final String

The label for the render pipeline.

final GPUPipelineLayout

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

final @NonNull GPUMultisampleState

The configuration for multisampling.

final @NonNull GPUPrimitiveState

The configuration for primitive assembly.

final @NonNull GPUVertexState

The configuration for the vertex stage.

final void
final void

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

final void

The label for the render pipeline.

final void

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

final void

The configuration for multisampling.

final void

The configuration for primitive assembly.

final void

The configuration for the vertex stage.

Public constructors

GPURenderPipelineDescriptor

Added in 1.0.0-alpha02
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-alpha02
public final GPUDepthStencilState getDepthStencil()

getFragment

Added in 1.0.0-alpha02
public final GPUFragmentState getFragment()

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

getLabel

Added in 1.0.0-alpha02
public final String getLabel()

The label for the render pipeline.

getLayout

Added in 1.0.0-alpha02
public final GPUPipelineLayout getLayout()

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

getMultisample

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

The configuration for multisampling.

getPrimitive

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

The configuration for primitive assembly.

getVertex

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

The configuration for the vertex stage.

setDepthStencil

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

setFragment

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

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

setLabel

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

The label for the render pipeline.

setLayout

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

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

setMultisample

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

The configuration for multisampling.

setPrimitive

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

The configuration for primitive assembly.

setVertex

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

The configuration for the vertex stage.