Added GetDeviceLimitation() API
Change-Id: I91f2756fd7f77b943bea185e929898594c96060a
Signed-off-by: Adam Bialogonski <adam.b@samsung.com>
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
*/
void Destroy() override;
+ uint32_t GetDeviceLimitation(Graphics::DeviceCapability capability) override;
+
/**
* @brief Executes batch update of textures
*