Skip to content

LiteFX::Rendering::Backends::DirectX12RenderPass::create

create overloads

Synopses

Declared in <litefx/backends/dx12.hpp>

Creates and initializes a new DirectX 12 render pass instance that executes on the default graphics queue.

[[dllimport, dllexport]] static SharedPtr<DirectX12RenderPass> create(
    DirectX12Device const& device,
    Span<RenderTarget> renderTargets,
    Span<RenderPassDependency> inputAttachments = { },
    Optional<DescriptorBindingPoint> inputAttachmentSamplerBinding = std::nullopt,
    UInt32 secondaryCommandBuffers = 1u,
    UInt32 viewMask = 0b0000);

» more...

Creates and initializes a new DirectX 12 render pass instance.

[[dllimport, dllexport]] static SharedPtr<DirectX12RenderPass> create(
    DirectX12Device const& device,
    DirectX12Queue const& queue,
    Span<RenderTarget> renderTargets,
    Span<RenderPassDependency> inputAttachments = { },
    Optional<DescriptorBindingPoint> inputAttachmentSamplerBinding = std::nullopt,
    UInt32 secondaryCommandBuffers = 1u,
    UInt32 viewMask = 0b0000);

» more...

Creates and initializes a new DirectX 12 render pass instance that executes on the default graphics queue.

[[dllimport, dllexport]] static SharedPtr<DirectX12RenderPass> create(
    DirectX12Device const& device,
    String const& name,
    Span<RenderTarget> renderTargets,
    Span<RenderPassDependency> inputAttachments = { },
    Optional<DescriptorBindingPoint> inputAttachmentSamplerBinding = std::nullopt,
    UInt32 secondaryCommandBuffers = 1u,
    UInt32 viewMask = 0b0000);

» more...

Creates and initializes a new DirectX 12 render pass instance.

[[dllimport, dllexport]] static SharedPtr<DirectX12RenderPass> create(
    DirectX12Device const& device,
    String const& name,
    DirectX12Queue const& queue,
    Span<RenderTarget> renderTargets,
    Span<RenderPassDependency> inputAttachments = { },
    Optional<DescriptorBindingPoint> inputAttachmentSamplerBinding = std::nullopt,
    UInt32 secondaryCommandBuffers = 1u,
    UInt32 viewMask = 0b0000);

» more...

Return Value

A pointer to the newly created render pass instance.

Parameters

NameDescription
deviceThe parent device instance.
renderTargetsThe render targets that are output by the render pass.
inputAttachmentsThe input attachments that are read by the render pass.
inputAttachmentSamplerBindingThe binding point for the input attachment sampler.
secondaryCommandBuffersThe number of command buffers that can be used for recording multi-threaded commands during the render pass.
viewMaskA mask that identifies the enabled view instances for this render pass.
queueThe command queue to execute the render pass on.
nameThe name of the render pass state resource.