mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-22 06:26:30 +00:00
Solved cbuffer bind issue
This commit is contained in:
committed by
Baldur Karlsson
parent
e31ebd0f55
commit
579dec8b4b
@@ -734,7 +734,7 @@ QString PipelineStateViewer::GenerateHLSLStub(const ShaderBindpointMapping &bind
|
||||
QString cbufName = cbuf.name;
|
||||
if(cbufName == lit("$Globals"))
|
||||
cbufName = lit("_Globals");
|
||||
cbuffers += lit("cbuffer %1 : register(b%2) {\n").arg(cbufName).arg(cbuf.bindPoint);
|
||||
cbuffers += lit("cbuffer %1 : register(b%2) {\n").arg(cbufName).arg(reg);
|
||||
MakeShaderVariablesHLSL(true, cbuf.variables, cbuffers, hlsl);
|
||||
cbuffers += lit("};\n\n");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user