Fix an improper usage of getCols, which should be getNominalSize, in unsigned int vector code.
TRAC #23263
Signed-off-by: Shannon Woods
Author: Jamie Madill
diff --git a/src/compiler/OutputHLSL.cpp b/src/compiler/OutputHLSL.cpp
index b638e12..f9332ab 100644
--- a/src/compiler/OutputHLSL.cpp
+++ b/src/compiler/OutputHLSL.cpp
@@ -2924,7 +2924,7 @@
case 4: return "int4";
}
case EbtUInt:
- switch (type.getCols())
+ switch (type.getNominalSize())
{
case 1: return "uint";
case 2: return "uint2";
@@ -3501,7 +3501,7 @@
}
else if (type.isVector())
{
- switch(type.getCols())
+ switch(type.getNominalSize())
{
case 2: return GL_UNSIGNED_INT_VEC2;
case 3: return GL_UNSIGNED_INT_VEC3;
diff --git a/src/compiler/VariableInfo.cpp b/src/compiler/VariableInfo.cpp
index 8976f83..9f7ebc7 100644
--- a/src/compiler/VariableInfo.cpp
+++ b/src/compiler/VariableInfo.cpp
@@ -73,7 +73,7 @@
if (type.isMatrix()) {
UNREACHABLE();
} else if (type.isVector()) {
- switch (type.getCols()) {
+ switch (type.getNominalSize()) {
case 2: return SH_UNSIGNED_INT_VEC2;
case 3: return SH_UNSIGNED_INT_VEC3;
case 4: return SH_UNSIGNED_INT_VEC4;