1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-12 13:08:50 +01:00

[dxvk] Use DxvkBufferSliceHandle for staging buffers

This commit is contained in:
Philip Rebohle 2019-01-09 17:16:59 +01:00
parent 004db3677b
commit c8e1813b07
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -33,10 +33,10 @@ namespace dxvk {
if (m_bufferOffset + size > m_bufferSize)
return false;
auto physicalSlice = m_buffer->subSlice(m_bufferOffset, size);
slice.buffer = physicalSlice.handle();
slice.offset = physicalSlice.offset();
slice.mapPtr = physicalSlice.mapPtr(0);
auto physSlice = m_buffer->getSliceHandle(m_bufferOffset, size);
slice.buffer = physSlice.handle;
slice.offset = physSlice.offset;
slice.mapPtr = physSlice.mapPtr;
m_bufferOffset = align(m_bufferOffset + size, 64);
return true;