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:
parent
004db3677b
commit
c8e1813b07
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user