]> git.tdb.fi Git - libs/gl.git/commit
Align staging memory with an alignment suitable for image transfers
authorMikko Rasa <tdb@tdb.fi>
Tue, 25 Jan 2022 18:14:17 +0000 (20:14 +0200)
committerMikko Rasa <tdb@tdb.fi>
Tue, 25 Jan 2022 18:49:11 +0000 (20:49 +0200)
commite9d24b3844110f8a545083bb0acbc504737aca88
tree0ea83d975ccdc5cebded4790f66b9bf307645572
parent5ced451549e2238bb1195d03419437a395b9afec
Align staging memory with an alignment suitable for image transfers

The source data needs to be aligned at a multiple of the texel size.  48
bytes is divisible by almost all possible pixel sizes.
source/backends/vulkan/transferqueue.cpp