1
0
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:
Philip Rebohle 2019-10-28 15:44:02 +01:00
parent 3d213efe53
commit fd547b666e
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 0 additions and 9 deletions

View File

@ -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;

View File

@ -36,7 +36,6 @@ namespace dxvk {
*/
struct DxbcConstantBuffer {
uint32_t varId = 0;
uint32_t specId = 0;
uint32_t size = 0;
};