1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-04-06 18:57:31 +02:00

[d3d11] Store used binding mask inside shader objects

This commit is contained in:
Philip Rebohle 2025-02-18 01:08:28 +01:00 committed by Philip Rebohle
parent 75599780f2
commit 6080e6d24d
2 changed files with 16 additions and 4 deletions

View File

@ -79,6 +79,12 @@ namespace dxvk {
}
pDevice->GetDXVKDevice()->registerShader(m_shader);
// Write back binding mask
auto bindings = module.bindings();
if (bindings)
m_bindings = *bindings;
}

View File

@ -53,11 +53,17 @@ namespace dxvk {
return m_shader->debugName();
}
DxbcBindingMask GetBindingMask() const {
return m_bindings;
}
private:
Rc<DxvkShader> m_shader;
Rc<DxvkBuffer> m_buffer;
DxbcBindingMask m_bindings = { };
};