Hymn to Beauty
C++ 3D Engine
VulkanRenderPassAllocator.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "../Interface/RenderPassAllocator.hpp"
4#include <vulkan/vulkan.h>
5
6namespace Video {
7
10 public:
12
15 explicit VulkanRenderPassAllocator(VkDevice device);
16
19
20 private:
21 RenderPass* AllocateRenderPass(Texture* colorAttachment, RenderPass::LoadOperation colorLoadOperation, Texture* depthAttachment, RenderPass::LoadOperation depthLoadOperation) final;
22 RenderPass* AllocateAttachmentlessRenderPass(const glm::uvec2& size, uint32_t msaaSamples) final;
23
24 VkDevice device;
25};
26
27}
Responsible for allocating render passes and framebuffers.
Definition: RenderPassAllocator.hpp:11
A render pass.
Definition: RenderPass.hpp:11
LoadOperation
What to do with an image being rendered to before rendering to it.
Definition: RenderPass.hpp:14
A texture.
Definition: Texture.hpp:8
Vulkan implementation of RenderPassAllocator.
Definition: VulkanRenderPassAllocator.hpp:9
VulkanRenderPassAllocator(VkDevice device)
Create a new render pass allocator.
Definition: VulkanRenderPassAllocator.cpp:7
~VulkanRenderPassAllocator() final
Destructor.
Definition: VulkanRenderPassAllocator.cpp:11
Definition: Editor.hpp:18