diff options
author | Manuel Stoeckl <code@mstoeckl.com> | 2022-11-25 12:28:43 -0500 |
---|---|---|
committer | Manuel Stoeckl <code@mstoeckl.com> | 2022-11-25 12:29:02 -0500 |
commit | c02872e033b431d9f02a240abeebdf0aaa043ea6 (patch) | |
tree | 2f02aec2f6eb51ce636f3836e020579937d44c2d /tinywl/Makefile | |
parent | f0375eed24276e27e036f724c9fde5d344fc140a (diff) |
render/vulkan: align staging buffers for texture upload
vkCmdCopyBufferToImage requires that the buffer offset be a multiple
of the texel block size, which for single plane uncompressed formats
is the same as the number of bytes per pixel. This commit adds an
alignment parameter to vulkan_get_stage_span which ensures that the
provided span (and the sequence of image copy operations derived which
use it) have this alignment.
Diffstat (limited to 'tinywl/Makefile')
0 files changed, 0 insertions, 0 deletions