LiteFX::Rendering::Backends::VulkanRenderPass::create¶
create overloads
Synopses¶
Declared in <litefx/backends/vulkan.hpp>
Creates and initializes a new Vulkan render pass instance that executes on the default graphics queue.
[[dllimport, dllexport]] static SharedPtr<VulkanRenderPass> create(
VulkanDevice const& device,
Span<RenderTarget> renderTargets,
Span<RenderPassDependency> inputAttachments = { },
Optional<DescriptorBindingPoint> inputAttachmentSamplerBinding = std::nullopt,
UInt32 secondaryCommandBuffers = 1u,
UInt32 viewMask = 0b0000);
Creates and initializes a new Vulkan render pass instance that executes on the default graphics queue.
[[dllimport, dllexport]] static SharedPtr<VulkanRenderPass> create(
VulkanDevice const& device,
String const& name,
Span<RenderTarget> renderTargets,
Span<RenderPassDependency> inputAttachments = { },
Optional<DescriptorBindingPoint> inputAttachmentSamplerBinding = std::nullopt,
UInt32 secondaryCommandBuffers = 1u,
UInt32 viewMask = 0b0000);
Creates and initializes a new Vulkan render pass instance.
[[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);
Creates and initializes a new Vulkan render pass instance.
[[dllimport, dllexport]] static SharedPtr<VulkanRenderPass> create(
VulkanDevice const& device,
String const& name,
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¶
| Name | Description |
|---|---|
| device | The parent device instance. |
| renderTargets | The render targets that are output by the render pass. |
| inputAttachments | The input attachments that are read by the render pass. |
| inputAttachmentSamplerBinding | The binding point for the input attachment sampler. |
| secondaryCommandBuffers | The number of command buffers that can be used for recording multi-threaded commands during the render pass. |
| viewMask | A mask that identifies the enabled view instances for this render pass. |
| name | The name of the render pass state resource. |
| queue | The command queue to execute the render pass on. |