class TPass

template<bool IsRenderProxy>

Contains common functionality used by both main and render thread counterparts of Pass.

Public

Methods

~TPass<IsRenderProxy>

virtual ~TPass<IsRenderProxy>() = default

HasBlending

bool HasBlending() const

Returns true if this pass has some element of transparency.

IsCompute

bool IsCompute() const

Returns true if the pass executes a compute program.

GetStencilRefValue

u32 GetStencilRefValue() const

Gets the stencil reference value that is used when performing operations using the stencil buffer.

GetGpuProgramCreateInformation

const GpuProgramCreateInformation &GetGpuProgramCreateInformation(GpuProgramType type) const

Returns the GPU program descriptor for the specified GPU program type.

GetGraphicsPipelineState

const SPtr<GpuGraphicsPipelineState> &GetGraphicsPipelineState() const

Returns the graphics pipeline state describing this pass, or null if its a compute pass.

Only valid after Compile() has been called.

GetComputePipelineState

const SPtr<GpuComputePipelineState> &GetComputePipelineState() const

Returns the compute pipeline state describing this pass, or null if its a graphics pass.

Only valid after compile has been called.

Protected

Constructors

TPass<IsRenderProxy>

TPass<IsRenderProxy>()

TPass<IsRenderProxy>

TPass<IsRenderProxy>(const PassCreateInformation &createInformation)

Methods

CreatePipelineState

void CreatePipelineState()

Creates either the graphics or the compute pipeline state from the stored pass data.

Fields

mData

mGraphicsPipelineState

SPtr<GpuGraphicsPipelineState> mGraphicsPipelineState

mComputePipelineState

SPtr<GpuComputePipelineState> mComputePipelineState