mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +01:00
[dxvk] Move some code to where it makes more sense
This commit is contained in:
parent
6b2f4f93cc
commit
77fde83479
@ -3621,11 +3621,6 @@ namespace dxvk {
|
||||
}
|
||||
}
|
||||
|
||||
// Select the active binding mask to update
|
||||
auto& refMask = BindPoint == VK_PIPELINE_BIND_POINT_GRAPHICS
|
||||
? m_state.gp.state.bsBindingMask
|
||||
: m_state.cp.state.bsBindingMask;
|
||||
|
||||
for (uint32_t i = 0; i < layout->bindingCount(); i++) {
|
||||
const auto& binding = layout->binding(i);
|
||||
const auto& res = m_rc[binding.slot];
|
||||
@ -3728,6 +3723,11 @@ namespace dxvk {
|
||||
}
|
||||
}
|
||||
|
||||
// Select the active binding mask to update
|
||||
auto& refMask = BindPoint == VK_PIPELINE_BIND_POINT_GRAPHICS
|
||||
? m_state.gp.state.bsBindingMask
|
||||
: m_state.cp.state.bsBindingMask;
|
||||
|
||||
// If some resources are not bound, we may need to
|
||||
// update spec constants and rebind the pipeline
|
||||
bool updatePipelineState = refMask != bindMask;
|
||||
|
Loading…
x
Reference in New Issue
Block a user