Skip to content

LiteFX::Rendering::Backends::VulkanRenderPass::create

Creates and initializes a new Vulkan render pass instance.

Synopsis

Declared in <litefx/backends/vulkan.hpp>

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

Return Value

A pointer to the newly created render pass instance.

Parameters

NameDescription
deviceThe parent device instance.
queueThe command queue to execute the render pass on.
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.