Replaced gli with libktx for 2D texture array loading sample
This commit is contained in:
parent
87042dc358
commit
660e93e0c4
2 changed files with 32 additions and 19 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue