summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2020-01-03 21:55:59 +0000
committerassiduous <assiduous@diligentgraphics.com>2020-01-03 21:55:59 +0000
commit08274e2f167f07e70a1a25bcb5108ab4886d4e1f (patch)
tree265deb5a10ee24e0b6181a353cc42e79c66c4b91 /Graphics/GraphicsEngine
parentRenamed QueryDataTimestamp::NumTicks to QueryDataTimestamp::Counter (diff)
downloadDiligentCore-08274e2f167f07e70a1a25bcb5108ab4886d4e1f.tar.gz
DiligentCore-08274e2f167f07e70a1a25bcb5108ab4886d4e1f.zip
Implemented queries in OpenGL
Diffstat (limited to 'Graphics/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/interface/DeviceContext.h2
-rw-r--r--Graphics/GraphicsEngine/interface/Query.h2
2 files changed, 4 insertions, 0 deletions
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