Hymn to Beauty
C++ 3D Engine
VulkanRenderTargetAllocator.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "../Interface/RenderTargetAllocator.hpp"
4
5#include <vulkan/vulkan.h>
6
7namespace Video {
8
9class VulkanRenderer;
10
13 public:
15
21 VulkanRenderTargetAllocator(VulkanRenderer& vulkanRenderer, VkDevice device, VkPhysicalDevice physicalDevice, RenderPassAllocator* renderPassAllocator);
22
25
26 private:
27 Texture* AllocateRenderTarget(const glm::uvec2& size, Texture::Format format) final;
28
29 VulkanRenderer& vulkanRenderer;
30 VkDevice device;
31 VkPhysicalDevice physicalDevice;
32};
33
34}
Responsible for allocating render passes and framebuffers.
Definition: RenderPassAllocator.hpp:11
Responsible for allocating render targets.
Definition: RenderTargetAllocator.hpp:13
A texture.
Definition: Texture.hpp:8
Format
The format of the texture.
Definition: Texture.hpp:18
Vulkan implementation of RenderTargetAllocator.
Definition: VulkanRenderTargetAllocator.hpp:12
~VulkanRenderTargetAllocator() final
Destructor.
Definition: VulkanRenderTargetAllocator.cpp:17
VulkanRenderTargetAllocator(VulkanRenderer &vulkanRenderer, VkDevice device, VkPhysicalDevice physicalDevice, RenderPassAllocator *renderPassAllocator)
Create a new render target allocator.
Definition: VulkanRenderTargetAllocator.cpp:10
Low-level renderer implementing Vulkan.
Definition: VulkanRenderer.hpp:24
Definition: Editor.hpp:18