Updated test suite 73/319173/2
authorAdam Bialogonski <adam.b@samsung.com>
Wed, 16 Oct 2024 14:59:51 +0000 (15:59 +0100)
committerAdam Bialogonski <adam.b@samsung.com>
Wed, 16 Oct 2024 15:29:39 +0000 (16:29 +0100)
Added GetDeviceLimitation() API

Change-Id: I91f2756fd7f77b943bea185e929898594c96060a
Signed-off-by: Adam Bialogonski <adam.b@samsung.com>
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-controller.cpp
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-controller.h

index 94dd8d54abbadc89a836355efbd0e8dcdc847f3c..f241257e227c9a6f9931a50a264e66f3c83d37d4 100644 (file)
@@ -1520,4 +1520,16 @@ const Matrix& TestGraphicsController::GetClipMatrix() const
   return IDENTITY;
 }
 
+uint32_t TestGraphicsController::GetDeviceLimitation(Graphics::DeviceCapability capability)
+{
+  if(capability == Graphics::DeviceCapability::MIN_UNIFORM_BUFFER_OFFSET_ALIGNMENT)
+  {
+    auto& gl           = *const_cast<TestGlAbstraction*>(&mGl);
+    GLint uniformAlign = 0;
+    gl.GetIntegerv(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT, &uniformAlign);
+    return uniformAlign; // Default for testing
+  }
+  return 0;
+}
+
 } // namespace Dali
index 012833dce392a22b77905b6d0725b4064597947a..ba91f897f1077e7f36ef1cd908b4b5bad8a995f0 100644 (file)
@@ -151,6 +151,8 @@ public:
    */
   void Destroy() override;
 
+  uint32_t GetDeviceLimitation(Graphics::DeviceCapability capability) override;
+
   /**
    * @brief Executes batch update of textures
    *