1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-04 07:24:15 +01:00

[dxvk] Use DxvkBufferSliceHandle for dummy resources

This commit is contained in:
Philip Rebohle 2019-01-09 17:18:32 +01:00
parent c8e1813b07
commit 61fdf4ef64
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -29,7 +29,7 @@ namespace dxvk {
* \returns Dummy buffer handle
*/
VkBuffer bufferHandle() const {
return m_buffer->slice().handle();
return m_buffer->getSliceHandle().handle;
}
/**
@ -41,12 +41,12 @@ namespace dxvk {
* \returns Dummy buffer descriptor
*/
VkDescriptorBufferInfo bufferDescriptor() const {
auto slice = m_buffer->slice();
auto slice = m_buffer->getSliceHandle();
VkDescriptorBufferInfo result;
result.buffer = slice.handle();
result.offset = slice.offset();
result.range = slice.length();
result.buffer = slice.handle;
result.offset = slice.offset;
result.range = slice.length;
return result;
}