mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[dxbc] Emit a spec constant for uniform buffers
This partially reverts commit fd547b666e5324f29eff47f2838832f273bb0fed. For some reason, not doing so breaks Overwatch (because of course it does).
This commit is contained in:
parent
00a064e32b
commit
49e7df96ec
@ -806,6 +806,13 @@ namespace dxvk {
|
||||
if (asSsbo)
|
||||
m_module.decorate(varId, spv::DecorationNonWritable);
|
||||
|
||||
// Declare a specialization constant which will
|
||||
// store whether or not the resource is bound.
|
||||
const uint32_t specConstId = m_module.specConstBool(true);
|
||||
m_module.decorateSpecId(specConstId, bindingId);
|
||||
m_module.setDebugName(specConstId,
|
||||
str::format(name, "_bound").c_str());
|
||||
|
||||
DxbcConstantBuffer buf;
|
||||
buf.varId = varId;
|
||||
buf.size = numConstants;
|
||||
|
Loading…
x
Reference in New Issue
Block a user