Fixed declaring arrays within structures.

TRAC #22326 Signed-off-by: Daniel Koch Signed-off-by: Shannon Woods Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/branches/dx11proto@1632 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 7aa6afff
...@@ -2673,7 +2673,7 @@ void OutputHLSL::declareUniform(const TType &type, const TString &name, int inde ...@@ -2673,7 +2673,7 @@ void OutputHLSL::declareUniform(const TType &type, const TString &name, int inde
const TString uniformName = name + "[" + str(i) + "]." + fieldName; const TString uniformName = name + "[" + str(i) + "]." + fieldName;
declareUniform(fieldType, uniformName, elementIndex); declareUniform(fieldType, uniformName, elementIndex);
elementIndex += fieldType.elementRegisterCount(); elementIndex += fieldType.totalRegisterCount();
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment