mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-18 20:52:10 +01:00
[dxbc] Don't emit a spec constant for uniform buffers
This commit is contained in:
parent
3d213efe53
commit
fd547b666e
@ -806,16 +806,8 @@ 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.specId = specConstId;
|
||||
buf.size = numConstants;
|
||||
m_constantBuffers.at(regIdx) = buf;
|
||||
|
||||
|
@ -36,7 +36,6 @@ namespace dxvk {
|
||||
*/
|
||||
struct DxbcConstantBuffer {
|
||||
uint32_t varId = 0;
|
||||
uint32_t specId = 0;
|
||||
uint32_t size = 0;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user