Debug visualization for the Vulkan memory allocator. Shows some interesting behaviour.

This commit is contained in:
Henrik Rydgård committed 2018-01-29 19:38:10 +01:00
1 parent 2ae2dd7d40
commit c60c8ed68a
18 files changed
+168 -15

No files matched your search

+1 -2
View File
@@ -652,8 +652,7 @@ enum class TextureState {
bool VKTexture::Create(VkCommandBuffer cmd, const TextureDesc &desc, VulkanDeviceAllocator *alloc) {
// Zero-sized textures not allowed.
if (desc.width * desc.height * desc.depth == 0)
return false;
assert(desc.width * desc.height * desc.depth > 0);
format_ = desc.format;
mipLevels_ = desc.mipLevels;
width_ = desc.width;