mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-25 07:05:48 +00:00
Assign subsequent regIndex locations for matrix/arrays in GL reflection
This commit is contained in:
@@ -1061,6 +1061,8 @@ static void AddSigParameter(std::vector<SigParameter> &sigs, uint32_t ®Index,
|
||||
|
||||
if(s.regIndex == ~0U)
|
||||
s.regIndex = regIndex++;
|
||||
else if(arrayIdx >= 0)
|
||||
s.regIndex += arrayIdx;
|
||||
|
||||
if(arrayIdx >= 0)
|
||||
{
|
||||
@@ -1078,6 +1080,10 @@ static void AddSigParameter(std::vector<SigParameter> &sigs, uint32_t ®Index,
|
||||
|
||||
if(s.regIndex == ~0U)
|
||||
s.regIndex = regIndex++;
|
||||
else if(arrayIdx >= 0)
|
||||
s.regIndex += rows * arrayIdx + r;
|
||||
else
|
||||
s.regIndex += r;
|
||||
|
||||
if(arrayIdx >= 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user