}
}
+TextureProperties EglGraphicsController::GetTextureProperties(const Texture& texture)
+{
+ const GLES::Texture* glesTexture = static_cast<const GLES::Texture*>(&texture);
+ auto createInfo = glesTexture->GetCreateInfo();
+
+ TextureProperties properties{};
+ properties.format = createInfo.format;
+ properties.compressed = glesTexture->IsCompressed();
+ properties.extent2D = createInfo.size;
+ properties.nativeHandle = glesTexture->GetGLTexture();
+ //TODO: Skip format1, emulated, packed, directWriteAccessEnabled of TextureProperties for now
+
+ return properties;
+}
+
const Graphics::Reflection& EglGraphicsController::GetProgramReflection(const Graphics::Program& program)
{
return static_cast<const Graphics::GLES::Program*>(&program)->GetReflection();
return *mPipelineCache;
}
+void EglGraphicsController::CaptureRenderingResult(Graphics::Framebuffer& framebuffer, CallbackBase* capturedCallback, uint8_t* capturedBuffer)
+{
+ static_cast<GLES::Framebuffer*>(&framebuffer)->CaptureRenderingResult(capturedCallback, capturedBuffer);
+}
+
} // namespace Dali::Graphics