Water works now

This commit is contained in:
Dynamitos
2024-08-21 17:43:31 +02:00
parent fcdb132d49
commit 19a2423953
8 changed files with 11 additions and 12 deletions
+2 -2
View File
@@ -162,7 +162,7 @@ TextureHandle::TextureHandle(PGraphics graphics, VkImageViewType viewType, const
{
.aspectMask = aspect,
.levelCount = mipLevels,
.layerCount = layerCount,
.layerCount = layerCount * arrayCount,
},
};
@@ -194,7 +194,7 @@ void TextureHandle::pipelineBarrier(VkAccessFlags srcAccess, VkPipelineStageFlag
.baseMipLevel = 0,
.levelCount = mipLevels,
.baseArrayLayer = 0,
.layerCount = 1,
.layerCount = layerCount * arrayCount,
},
};
PCommand command = graphics->getQueueCommands(owner)->getCommands();