vulkan: fix wireframe validation error

This commit is contained in:
niki
2022-08-01 16:07:37 +02:00
parent 224b9e84f0
commit 98ebdd7871
4 changed files with 13 additions and 12 deletions
+8
View File
@@ -481,6 +481,14 @@ VkImageViewType Vulkan::getImageViewType(TextureType textureType) {
}
}
VkPolygonMode Vulkan::getPolygonMode(bool wireframe) {
if (wireframe) {
return VK_POLYGON_MODE_LINE;
} else {
return VK_POLYGON_MODE_FILL;
}
}
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{};