mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +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)
|
if (asSsbo)
|
||||||
m_module.decorate(varId, spv::DecorationNonWritable);
|
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;
|
DxbcConstantBuffer buf;
|
||||||
buf.varId = varId;
|
buf.varId = varId;
|
||||||
buf.specId = specConstId;
|
|
||||||
buf.size = numConstants;
|
buf.size = numConstants;
|
||||||
m_constantBuffers.at(regIdx) = buf;
|
m_constantBuffers.at(regIdx) = buf;
|
||||||
|
|
||||||
|
@ -36,7 +36,6 @@ namespace dxvk {
|
|||||||
*/
|
*/
|
||||||
struct DxbcConstantBuffer {
|
struct DxbcConstantBuffer {
|
||||||
uint32_t varId = 0;
|
uint32_t varId = 0;
|
||||||
uint32_t specId = 0;
|
|
||||||
uint32_t size = 0;
|
uint32_t size = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user