vulkan: default renderpass and framebuffers

Since these objects basically get used every frame
we shouldn't store them in a hashmap with potentially
worse performance.
Instead storing them in member variables should be better.
This commit is contained in:
niki
2022-08-25 18:15:18 +02:00
parent a577be8a6d
commit 77f75648e8
4 changed files with 69 additions and 37 deletions
+1
View File
@@ -53,6 +53,7 @@ public:
static VkSamplerMipmapMode getMipMapMode(SamplerState::MipmapFilterMode);
static VkDescriptorType getDescriptorType(graphics::Shader::UniformType);
static VkStencilOp getStencilOp(StencilAction);
static VkIndexType getVulkanIndexBufferType(IndexDataType type);
static void cmdTransitionImageLayout(
VkCommandBuffer, VkImage, VkImageLayout oldLayout, VkImageLayout newLayout,