1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-04-05 04:25:22 +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

@ -18,7 +18,7 @@
namespace dxvk {
class D3D11Device;
/**
* \brief Common shader object
*
@ -52,12 +52,18 @@ namespace dxvk {
std::string GetName() const {
return m_shader->debugName();
}
DxbcBindingMask GetBindingMask() const {
return m_bindings;
}
private:
Rc<DxvkShader> m_shader;
Rc<DxvkBuffer> m_buffer;
DxbcBindingMask m_bindings = { };
};