Get image offsets outside of assert calls
This commit is contained in:
parent
2b8b23acf9
commit
a5794633f0
1 changed files with 3 additions and 3 deletions
|
|
@ -175,7 +175,7 @@ namespace vks
|
||||||
{
|
{
|
||||||
ktx_size_t offset;
|
ktx_size_t offset;
|
||||||
KTX_error_code result = ktxTexture_GetImageOffset(ktxTexture, i, 0, 0, &offset);
|
KTX_error_code result = ktxTexture_GetImageOffset(ktxTexture, i, 0, 0, &offset);
|
||||||
assert(result = KTX_SUCCESS);
|
assert(result == KTX_SUCCESS);
|
||||||
|
|
||||||
VkBufferImageCopy bufferCopyRegion = {};
|
VkBufferImageCopy bufferCopyRegion = {};
|
||||||
bufferCopyRegion.imageSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
|
bufferCopyRegion.imageSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
|
||||||
|
|
@ -627,7 +627,7 @@ namespace vks
|
||||||
{
|
{
|
||||||
ktx_size_t offset;
|
ktx_size_t offset;
|
||||||
KTX_error_code result = ktxTexture_GetImageOffset(ktxTexture, level, layer, 0, &offset);
|
KTX_error_code result = ktxTexture_GetImageOffset(ktxTexture, level, layer, 0, &offset);
|
||||||
assert(result = KTX_SUCCESS);
|
assert(result == KTX_SUCCESS);
|
||||||
|
|
||||||
VkBufferImageCopy bufferCopyRegion = {};
|
VkBufferImageCopy bufferCopyRegion = {};
|
||||||
bufferCopyRegion.imageSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
|
bufferCopyRegion.imageSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
|
||||||
|
|
@ -821,7 +821,7 @@ namespace vks
|
||||||
{
|
{
|
||||||
ktx_size_t offset;
|
ktx_size_t offset;
|
||||||
KTX_error_code result = ktxTexture_GetImageOffset(ktxTexture, level, 0, face, &offset);
|
KTX_error_code result = ktxTexture_GetImageOffset(ktxTexture, level, 0, face, &offset);
|
||||||
assert(result = KTX_SUCCESS);
|
assert(result == KTX_SUCCESS);
|
||||||
|
|
||||||
VkBufferImageCopy bufferCopyRegion = {};
|
VkBufferImageCopy bufferCopyRegion = {};
|
||||||
bufferCopyRegion.imageSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
|
bufferCopyRegion.imageSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue