PipelineStateHandle

Description

struct Tinman.AddOns.DirectX12.Pipeline.PipelineStateHandle

Full source code is included in the Tinman 3D SDK download.

Describes the input values that are required to build an ID3D12PipelineState object.

Public / Constants

Empty


public static readonly attribute Empty → (PipelineStateHandle)

An empty pipeline state handle.

Public / Methods

PackMultiSampleType


[Pure]
public static method PackMultiSampleType → (1)

multiSample in : MultiSampleType

The multi-sample type.

returns → int32

The packed multi-sample code.

Generates a packed multi-sample description value.

PackRenderTargetFormats


[Pure]
public static method PackRenderTargetFormats → (1)

targets in : RenderTargets

The render target collection.

returns → int64

The packed format code.

Generates a packed format code for the given render targets.

SetGeometry


public method SetGeometry → (1)

geometry opt : IPipelineGeometry = null

The input geometry or null if none.

returns → PipelineStateHandle

The resulting pipeline state handle.

Sets input geometry information.

SetPrimitiveTopologyType


public method SetPrimitiveTopologyType → (1)

primitive opt : int32 = 0

The D3D12_PRIMITIVE_TOPOLOGY_TYPE value.

returns → PipelineStateHandle

The resulting pipeline state handle.

Sets input primitive information.

SetRenderEffect


public method SetRenderEffect → (2)

effect opt : IPipelineEffect = null

The render effect or null if none.

pass opt : int32 = 0

The render effect pass. Will be ignored if effect opt is null.

returns → PipelineStateHandle

The resulting pipeline state handle.

Sets render effect information.

SetRenderTargetFormats


public method SetRenderTargetFormats → (1)

targets opt : int64 = 0

The packed format code.

returns → PipelineStateHandle

The resulting pipeline state handle.

Sets render and depth/stencil target information.

SetSampleDesc


public method SetSampleDesc → (1)

sampleDesc in : int32

The packed multi-sample code.

returns → PipelineStateHandle

The resulting pipeline state handle.

Sets render and depth/stencil target information.

WritePipelineState


public method WritePipelineState → (1)

stream in : PipelineStateStream

[not-null]
The output stream.

Writes pipeline stream sub-objects (see D3D12_PIPELINE_STATE_SUBOBJECT_TYPE) to the given stream.