From 1739b90d6120e24065b0c85a8d293234c5d51787 Mon Sep 17 00:00:00 2001 From: Paul Lemire Date: Thu, 20 Sep 2018 12:10:26 +0200 Subject: Implement WaitFence/SetFence handling into the renderer Slightly reorganize jobs between jobs needed for rendering and jobs that should run even when no rendering is required. Change-Id: I02d262efd8cb46c71c40ac6dbcd4d1b25bb725e1 Reviewed-by: Paul Lemire --- .../renderers/opengl/graphicshelpers/submissioncontext_p.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/render/renderers/opengl/graphicshelpers/submissioncontext_p.h') diff --git a/src/render/renderers/opengl/graphicshelpers/submissioncontext_p.h b/src/render/renderers/opengl/graphicshelpers/submissioncontext_p.h index d502a8b27..dbfaef148 100644 --- a/src/render/renderers/opengl/graphicshelpers/submissioncontext_p.h +++ b/src/render/renderers/opengl/graphicshelpers/submissioncontext_p.h @@ -59,6 +59,7 @@ #include #include #include +#include QT_BEGIN_NAMESPACE @@ -163,6 +164,14 @@ public: void clearDepthValue(float depth); void clearStencilValue(int stencil); + + // Fences + GLFence fenceSync(); + void clientWaitSync(GLFence sync, GLuint64 nanoSecTimeout); + void waitSync(GLFence sync); + bool wasSyncSignaled(GLFence sync); + void deleteSync(GLFence sync); + private: void initialize(); -- cgit v1.2.3