You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If set, generate an instance name for constant buffers. GLSL specs 4.5 disallows uniform variables from different constant buffers sharing the same name
460
+
// as long as they are part of the same final linked program. Uniform buffer instance names solve this cross-shader symbol conflict issue.
// DXBC always addresses as float4, find the address calculation
605
+
606
+
// Special case where struct is float4 size, no extra calc is done
607
+
if (ShaderInfo::GetCBVarSize(psVar->Parent, true) <= 16) // matrixAsVectors arg does not matter here as with matrices the size will go over the limit anyway
608
+
{
609
+
indexVarFound = true;
610
+
*needsIndexCalcRevert = false;
611
+
}
612
+
elseif (psDynIndexOrigin->eOpcode == OPCODE_IMUL)
613
+
{
614
+
// check which one of the src operands is the original index
0 commit comments