mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 19:54:19 +01:00
[dxvk] vkCmdUpdateBuffer can only be used if both offset and size are aligned to four bytes
This commit is contained in:
parent
1e08c0744f
commit
38b989ec91
@ -470,10 +470,10 @@ namespace dxvk {
|
||||
this->renderPassEnd();
|
||||
|
||||
if (size != 0) {
|
||||
// Vulkan specifies that small amounts of data (up to 64kB)
|
||||
// can be copied to a buffer directly. Anything larger than
|
||||
// that must be copied through a staging buffer.
|
||||
if (size <= 65536) {
|
||||
// Vulkan specifies that small amounts of data (up to 64kB) can
|
||||
// be copied to a buffer directly if the size is a multiple of
|
||||
// four. Anything else must be copied through a staging buffer.
|
||||
if ((size <= 65536) && ((size & 0x3) == 0)) {
|
||||
m_cmd->cmdUpdateBuffer(
|
||||
buffer->handle(),
|
||||
offset, size, data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user