1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 14:52:11 +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,7 +163,10 @@ namespace dxvk {
|| m_rc[slot].bufferView != bufferView) {
m_rc[slot].imageView = imageView;
m_rc[slot].bufferView = bufferView;
m_rc[slot].bufferSlice = bufferView != nullptr
? bufferView->slice()
: DxvkBufferSlice();
m_flags.set(
DxvkContextFlag::CpDirtyResources,
DxvkContextFlag::GpDirtyResources);