Support int uniform in shader 12/293412/1
authorseungho baek <sbsh.baek@samsung.com>
Fri, 26 May 2023 07:27:14 +0000 (16:27 +0900)
committerseungho baek <sbsh.baek@samsung.com>
Fri, 26 May 2023 07:27:14 +0000 (16:27 +0900)
Change-Id: Icafe38f8f70d154ab22bdcf1174e5a0d421c55e0
Signed-off-by: seungho baek <sbsh.baek@samsung.com>
dali/internal/graphics/gles-impl/gles-graphics-program.cpp
dali/internal/graphics/gles-impl/gles-graphics-types.h

index 6fa3d8f..8fa051c 100644 (file)
@@ -323,6 +323,12 @@ void ProgramImpl::BuildStandaloneUniformCache()
         mImpl->uniformSetters[index].type         = UniformSetter::Type::INT;
         break;
       }
         mImpl->uniformSetters[index].type         = UniformSetter::Type::INT;
         break;
       }
+      case GLType::INT:
+      {
+        mImpl->uniformSetters[index].uniformiProc = &GlAbstraction::Uniform1iv;
+        mImpl->uniformSetters[index].type         = UniformSetter::Type::INT;
+        break;
+      }
       case GLType::BOOL:
       case GLType::BOOL_VEC2:
       case GLType::BOOL_VEC3:
       case GLType::BOOL:
       case GLType::BOOL_VEC2:
       case GLType::BOOL_VEC3:
index 548d217..6541de3 100644 (file)
@@ -1715,6 +1715,11 @@ struct GLTypeConversion
         type = GLType::FLOAT;
         break;
       }
         type = GLType::FLOAT;
         break;
       }
+      case GL_INT:
+      {
+        type = GLType::INT;
+        break;
+      }
       default:
       {
         type = GLType::UNDEFINED;
       default:
       {
         type = GLType::UNDEFINED;