Class VulkanRenderPass#
Defined in File VulkanRenderPass.h
Class Documentation#
-
class VulkanRenderPass#
Public Functions
-
VulkanRenderPass(TRAP::Ref<VulkanDevice> device, const VulkanRenderer::RenderPassDesc &desc)#
Constructor.
- Parameters:
device – Vulkan device.
desc – Render pass description.
-
~VulkanRenderPass()#
Destructor.
-
consteval VulkanRenderPass(const VulkanRenderPass&) noexcept = delete#
Copy constructor.
-
consteval VulkanRenderPass &operator=(const VulkanRenderPass&) noexcept = delete#
Copy assignment operator.
-
VulkanRenderPass(VulkanRenderPass&&) noexcept = default#
Move constructor.
-
VulkanRenderPass &operator=(VulkanRenderPass&&) noexcept = default#
Move assignment operator.
-
constexpr VkRenderPass GetVkRenderPass() const noexcept#
Retrieve the Vulkan render pass handle.
- Returns:
Vulkan render pass handle.
-
constexpr const std::vector<TRAP::Graphics::API::ImageFormat> &GetColorFormats() const noexcept#
Retrieve the used color formats.
- Returns:
Used color formats.
-
constexpr const std::vector<RendererAPI::LoadActionType> &GetLoadActionsColor() const noexcept#
Retrieve the used color load action types.
- Returns:
Used color load action types.
-
constexpr u32 GetRenderTargetCount() const noexcept#
Retrieve the number of used render targets.
- Returns:
Number of used render targets.
-
constexpr RendererAPI::SampleCount GetSampleCount() const noexcept#
Retrieve the used sample count.
- Returns:
Used sample count.
-
constexpr TRAP::Graphics::API::ImageFormat GetDepthStencilFormat() const noexcept#
Retrieve the used depth stencil format.
- Returns:
Used depth stencil format.
-
constexpr RendererAPI::LoadActionType GetLoadActionTypeDepth() const noexcept#
Retrieve the used depth load action type.
- Returns:
Used depth load action type.
-
constexpr RendererAPI::LoadActionType GetLoadActionTypeStencil() const noexcept#
Retrieve the used stencil load action type.
- Returns:
Used stencil load action type.
-
VulkanRenderPass(TRAP::Ref<VulkanDevice> device, const VulkanRenderer::RenderPassDesc &desc)#