mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-04 16:24:29 +01:00
[dxvk] Use DxvkBufferSliceHandle for dummy resources
This commit is contained in:
parent
c8e1813b07
commit
61fdf4ef64
@ -29,7 +29,7 @@ namespace dxvk {
|
|||||||
* \returns Dummy buffer handle
|
* \returns Dummy buffer handle
|
||||||
*/
|
*/
|
||||||
VkBuffer bufferHandle() const {
|
VkBuffer bufferHandle() const {
|
||||||
return m_buffer->slice().handle();
|
return m_buffer->getSliceHandle().handle;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -41,12 +41,12 @@ namespace dxvk {
|
|||||||
* \returns Dummy buffer descriptor
|
* \returns Dummy buffer descriptor
|
||||||
*/
|
*/
|
||||||
VkDescriptorBufferInfo bufferDescriptor() const {
|
VkDescriptorBufferInfo bufferDescriptor() const {
|
||||||
auto slice = m_buffer->slice();
|
auto slice = m_buffer->getSliceHandle();
|
||||||
|
|
||||||
VkDescriptorBufferInfo result;
|
VkDescriptorBufferInfo result;
|
||||||
result.buffer = slice.handle();
|
result.buffer = slice.handle;
|
||||||
result.offset = slice.offset();
|
result.offset = slice.offset;
|
||||||
result.range = slice.length();
|
result.range = slice.length;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user