mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
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:
@@ -606,6 +606,15 @@ VkStencilOp Vulkan::getStencilOp(StencilAction action) {
|
||||
}
|
||||
}
|
||||
|
||||
VkIndexType Vulkan::getVulkanIndexBufferType(IndexDataType type) {
|
||||
switch (type) {
|
||||
case INDEX_UINT16: return VK_INDEX_TYPE_UINT16;
|
||||
case INDEX_UINT32: return VK_INDEX_TYPE_UINT32;
|
||||
default:
|
||||
throw love::Exception("unknown Index Data type");
|
||||
}
|
||||
}
|
||||
|
||||
void Vulkan::cmdTransitionImageLayout(VkCommandBuffer commandBuffer, VkImage image, VkImageLayout oldLayout, VkImageLayout newLayout,
|
||||
uint32_t baseLevel, uint32_t levelCount, uint32_t baseLayer, uint32_t layerCount) {
|
||||
VkImageMemoryBarrier barrier{};
|
||||
|
||||
Reference in New Issue
Block a user