1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-04 16:24:29 +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) if (m_bufferOffset + size > m_bufferSize)
return false; return false;
auto physicalSlice = m_buffer->subSlice(m_bufferOffset, size); auto physSlice = m_buffer->getSliceHandle(m_bufferOffset, size);
slice.buffer = physicalSlice.handle(); slice.buffer = physSlice.handle;
slice.offset = physicalSlice.offset(); slice.offset = physSlice.offset;
slice.mapPtr = physicalSlice.mapPtr(0); slice.mapPtr = physSlice.mapPtr;
m_bufferOffset = align(m_bufferOffset + size, 64); m_bufferOffset = align(m_bufferOffset + size, 64);
return true; return true;