Class VulkanFrameBuffer#

Class Documentation#

class VulkanFrameBuffer#

Public Functions

VulkanFrameBuffer(TRAP::Ref<VulkanDevice> device, const VulkanRenderer::FrameBufferDesc &desc)#

Constructor.

Parameters:
  • device – Vulkan device.

  • desc – Framebuffer description.

~VulkanFrameBuffer()#

Destructor.

consteval VulkanFrameBuffer(const VulkanFrameBuffer&) noexcept = delete#

Copy constructor.

consteval VulkanFrameBuffer &operator=(const VulkanFrameBuffer&) noexcept = delete#

Copy assignment operator.

VulkanFrameBuffer(VulkanFrameBuffer&&) noexcept = default#

Move constructor.

VulkanFrameBuffer &operator=(VulkanFrameBuffer&&) noexcept = default#

Move assignment operator.

constexpr VkFramebuffer GetVkFrameBuffer() const noexcept#

Retrieve the VkFramebuffer handle.

Returns:

VkFramebuffer handle.

constexpr u32 GetWidth() const noexcept#

Retrieve the width of the framebuffer.

Returns:

Framebuffer width.

constexpr u32 GetHeight() const noexcept#

Retrieve the height of the framebuffer.

Returns:

Framebuffer height.

constexpr u32 GetArraySize() const noexcept#

Retrieve the array size of the framebuffer.

Returns:

Framebuffer array size.