Replaced gli with libktx for 2D texture array loading sample

This commit is contained in:
Sascha Willems 2019-08-03 09:55:46 +02:00
parent 87042dc358
commit 660e93e0c4
2 changed files with 32 additions and 19 deletions

View file

@ -222,7 +222,7 @@ public:
// Calculate offset into staging buffer for the current mip lavel
ktx_size_t offset;
assert(ktxTexture_GetImageOffset(ktxTexture, i, 0, 0, &offset) == KTX_SUCCESS);
// Setup a buffer image copy structure for the current mip lavel
// Setup a buffer image copy structure for the current mip level
VkBufferImageCopy bufferCopyRegion = {};
bufferCopyRegion.imageSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
bufferCopyRegion.imageSubresource.mipLevel = i;