From 08274e2f167f07e70a1a25bcb5108ab4886d4e1f Mon Sep 17 00:00:00 2001 From: assiduous Date: Fri, 3 Jan 2020 13:55:59 -0800 Subject: Implemented queries in OpenGL --- Graphics/GraphicsEngine/interface/DeviceContext.h | 2 ++ Graphics/GraphicsEngine/interface/Query.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'Graphics/GraphicsEngine') diff --git a/Graphics/GraphicsEngine/interface/DeviceContext.h b/Graphics/GraphicsEngine/interface/DeviceContext.h index d101faa9..628f88ea 100644 --- a/Graphics/GraphicsEngine/interface/DeviceContext.h +++ b/Graphics/GraphicsEngine/interface/DeviceContext.h @@ -1013,6 +1013,8 @@ public: /// \param [in] pQuery - A pointer to a query object. /// /// \remarks Only immediate context can begin a query. + /// + /// \warning OpenGL does not support nested queries of the same type. virtual void BeginQuery(IQuery* pQuery) = 0; diff --git a/Graphics/GraphicsEngine/interface/Query.h b/Graphics/GraphicsEngine/interface/Query.h index 47f5bffe..38056611 100644 --- a/Graphics/GraphicsEngine/interface/Query.h +++ b/Graphics/GraphicsEngine/interface/Query.h @@ -107,6 +107,8 @@ struct QueryDataTimestamp /// Pipeline statistics query data. /// This structure is filled by IQuery::GetData() for Diligent::QUERY_TYPE_PIPELINE_STATISTICS query type. +/// +/// \warning In OpenGL backend the only field that will be populated is ClippingInvocations. struct QueryDataPipelineStatistics { /// Query type - must be Diligent::QUERY_TYPE_PIPELINE_STATISTICS -- cgit v1.2.3