uploadStaging(source, 1L, 16) only aligns to 1 byte, and the result is used as the bufferOffset of vkCmdCopyBufferToImage, which must be a multiple of the texel block size (and of 4 for depth/stencil). Any odd-sized staging allocation earlier in the same block (an R8 glyph upload, a 6-byte writeToBuffer…) misaligns the next RGBA8 NativeImage upload. OpenGL has no such constraint.
Source: VUID-vkCmdCopyBufferToImage-dstImage-07975
Comments 0
No comments.