1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-02-07 16:54:14 +01:00

[dxvk] Bind buffer slice when binding buffer view

This is going to be necessary when we can bind raw buffer views as SSBOs.
This commit is contained in:
Philip Rebohle 2018-12-13 14:00:17 +01:00
parent 0bc2498570
commit fd201c4c53
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -163,6 +163,9 @@ namespace dxvk {
|| m_rc[slot].bufferView != bufferView) { || m_rc[slot].bufferView != bufferView) {
m_rc[slot].imageView = imageView; m_rc[slot].imageView = imageView;
m_rc[slot].bufferView = bufferView; m_rc[slot].bufferView = bufferView;
m_rc[slot].bufferSlice = bufferView != nullptr
? bufferView->slice()
: DxvkBufferSlice();
m_flags.set( m_flags.set(
DxvkContextFlag::CpDirtyResources, DxvkContextFlag::CpDirtyResources,