43 bool IsDepthStencil();
47 inline VkFormat
GetFormat()
const {
return m_Format; }
51 inline VkAttachmentDescription
GetDescription()
const {
return m_Description; }
55 VkImage m_Image = VK_NULL_HANDLE;
56 VkDeviceMemory m_Memory = VK_NULL_HANDLE;
57 VkImageView m_ImageView = VK_NULL_HANDLE;
58 VkFormat m_Format = {};
59 VkSampleCountFlagBits m_Samples{ VK_SAMPLE_COUNT_1_BIT };
60 VkImageUsageFlags m_Usage{ VK_IMAGE_USAGE_SAMPLED_BIT };
61 VkImageSubresourceRange m_SubresourceRange = {};
62 VkAttachmentDescription m_Description = {};
77 VkFramebuffer
GetHandle()
const {
return m_FrameBuffer; }
87 VkResult CreateRenderPass();
93 VkResult CreateSampler(VkFilter magFilter, VkFilter minFilter, VkSamplerAddressMode adressMode);
112 VkFramebuffer m_FrameBuffer = VK_NULL_HANDLE;
113 VkRenderPass m_RenderPass = VK_NULL_HANDLE;
114 VkSampler m_Sampler = VK_NULL_HANDLE;
VkImageView GetViewHandle() const
Definition: FrameBuffer.h:46
VkDeviceMemory GetMemoryHandle() const
Definition: FrameBuffer.h:48
VkFramebuffer GetHandle() const
Definition: FrameBuffer.h:77
VkImageSubresourceRange GetSubresourceRange() const
Definition: FrameBuffer.h:50
VkFormat Format
Definition: FrameBuffer.h:18
INT32 GetWidth() const
Definition: FrameBuffer.h:106
VkAttachmentDescription GetDescription() const
Definition: FrameBuffer.h:51
VkImageUsageFlags Usage
Definition: FrameBuffer.h:19
const VkDevice & m_Device
Definition: FrameBuffer.h:115
UINT32 Width
Definition: FrameBuffer.h:15
VkImage GetImageHandle() const
Definition: FrameBuffer.h:45
VkRenderPass GetRenderPassHandle() const
Definition: FrameBuffer.h:78
int32_t INT32
Definition: FlingTypes.h:18
UINT32 Height
Definition: FrameBuffer.h:16
VkFormat GetFormat() const
Definition: FrameBuffer.h:47
Definition: FrameBuffer.h:67
VkSampleCountFlagBits GetSampleCount() const
Definition: FrameBuffer.h:49
Describes the attributes of an attachment to be created.
Definition: FrameBuffer.h:13
INT32 GetHeight() const
Definition: FrameBuffer.h:107
uint32_t UINT32
Definition: FlingTypes.h:13
VkSampler GetSamplerHandle() const
Definition: FrameBuffer.h:76
UINT32 LayerCount
Definition: FrameBuffer.h:17
Definition: FrameBuffer.h:22
std::vector< FrameBufferAttachment * > m_Attachments
Definition: FrameBuffer.h:117
const VkDevice & m_Device
Definition: FrameBuffer.h:64