Skip to content

LiteFX::Rendering::Backends::DirectX12RenderPipeline::DirectX12RenderPipeline

Initializes a new DirectX 12 render pipeline.

Synopsis

Declared in <litefx/backends/dx12.hpp>

[[dllimport, dllexport]] explicit DirectX12RenderPipeline(
    DirectX12RenderPass const& renderPass,
    SharedPtr<DirectX12PipelineLayout> const& layout,
    SharedPtr<DirectX12ShaderProgram> const& shaderProgram,
    SharedPtr<DirectX12InputAssembler> const& inputAssembler,
    SharedPtr<DirectX12Rasterizer> const& rasterizer,
    MultiSamplingLevel samples = MultiSamplingLevel::x1,
    bool enableAlphaToCoverage = false,
    String const& name = "");

Parameters

NameDescription
renderPassThe parent render pass.
shaderProgramThe shader program used by the pipeline.
layoutThe layout of the pipeline.
inputAssemblerThe input assembler state of the pipeline.
rasterizerThe rasterizer state of the pipeline.
samplesThe initial multi-sampling level of the render pipeline.
enableAlphaToCoverageWhether or not to enable Alpha-to-Coverage multi-sampling.
nameThe optional name of the render pipeline.