RenderPipelineDescriptor


public final class RenderPipelineDescriptor


A descriptor for creating a render pipeline.

Summary

Public constructors

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

Public methods

final DepthStencilState
final FragmentState

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 MultisampleState

The configuration for multisampling.

final @NonNull PrimitiveState

The configuration for primitive assembly.

final @NonNull VertexState

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

RenderPipelineDescriptor

Added in 1.0.0-alpha01
public RenderPipelineDescriptor(
    @NonNull VertexState vertex,
    String label,
    GPUPipelineLayout layout,
    @NonNull PrimitiveState primitive,
    DepthStencilState depthStencil,
    @NonNull MultisampleState multisample,
    FragmentState fragment
)

Public methods

getDepthStencil

Added in 1.0.0-alpha01
public final DepthStencilState getDepthStencil()

getFragment

Added in 1.0.0-alpha01
public final FragmentState getFragment()

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

getLabel

Added in 1.0.0-alpha01
public final String getLabel()

The label for the render pipeline.

getLayout

Added in 1.0.0-alpha01
public final GPUPipelineLayout getLayout()

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

getMultisample

Added in 1.0.0-alpha01
public final @NonNull MultisampleState getMultisample()

The configuration for multisampling.

getPrimitive

Added in 1.0.0-alpha01
public final @NonNull PrimitiveState getPrimitive()

The configuration for primitive assembly.

getVertex

Added in 1.0.0-alpha01
public final @NonNull VertexState getVertex()

The configuration for the vertex stage.

setDepthStencil

Added in 1.0.0-alpha01
public final void setDepthStencil(DepthStencilState depthStencil)

setFragment

Added in 1.0.0-alpha01
public final void setFragment(FragmentState fragment)

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

setLabel

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

The label for the render pipeline.

setLayout

Added in 1.0.0-alpha01
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-alpha01
public final void setMultisample(@NonNull MultisampleState multisample)

The configuration for multisampling.

setPrimitive

Added in 1.0.0-alpha01
public final void setPrimitive(@NonNull PrimitiveState primitive)

The configuration for primitive assembly.

setVertex

Added in 1.0.0-alpha01
public final void setVertex(@NonNull VertexState vertex)

The configuration for the vertex stage.