mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-04 07:24:15 +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)
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user