mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-04-06 09:57:53 +02:00
[d3d11] Store used binding mask inside shader objects
This commit is contained in:
parent
75599780f2
commit
6080e6d24d
@ -79,6 +79,12 @@ namespace dxvk {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pDevice->GetDXVKDevice()->registerShader(m_shader);
|
pDevice->GetDXVKDevice()->registerShader(m_shader);
|
||||||
|
|
||||||
|
// Write back binding mask
|
||||||
|
auto bindings = module.bindings();
|
||||||
|
|
||||||
|
if (bindings)
|
||||||
|
m_bindings = *bindings;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -53,11 +53,17 @@ namespace dxvk {
|
|||||||
return m_shader->debugName();
|
return m_shader->debugName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DxbcBindingMask GetBindingMask() const {
|
||||||
|
return m_bindings;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
Rc<DxvkShader> m_shader;
|
Rc<DxvkShader> m_shader;
|
||||||
Rc<DxvkBuffer> m_buffer;
|
Rc<DxvkBuffer> m_buffer;
|
||||||
|
|
||||||
|
DxbcBindingMask m_bindings = { };
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user