11/*
2- * Copyright 2019-2023 Diligent Graphics LLC
2+ * Copyright 2019-2025 Diligent Graphics LLC
33 * Copyright 2015-2019 Egor Yusov
44 *
55 * Licensed under the Apache License, Version 2.0 (the "License");
@@ -40,6 +40,7 @@ static DILIGENT_CONSTEXPR INTERFACE_ID IID_Query =
4040 {0x70f2a88a , 0xf8be , 0x4901 , {0x8f , 0x5 , 0x2f , 0x72 , 0xfa , 0x69 , 0x5b , 0xa0 }};
4141
4242// / Occlusion query data.
43+
4344// / This structure is filled by IQuery::GetData() for Diligent::QUERY_TYPE_OCCLUSION query type.
4445struct QueryDataOcclusion
4546{
@@ -53,6 +54,7 @@ struct QueryDataOcclusion
5354typedef struct QueryDataOcclusion QueryDataOcclusion;
5455
5556// / Binary occlusion query data.
57+
5658// / This structure is filled by IQuery::GetData() for Diligent::QUERY_TYPE_BINARY_OCCLUSION query type.
5759struct QueryDataBinaryOcclusion
5860{
@@ -66,6 +68,7 @@ struct QueryDataBinaryOcclusion
6668typedef struct QueryDataBinaryOcclusion QueryDataBinaryOcclusion;
6769
6870// / Timestamp query data.
71+
6972// / This structure is filled by IQuery::GetData() for Diligent::QUERY_TYPE_TIMESTAMP query type.
7073struct QueryDataTimestamp
7174{
@@ -82,6 +85,7 @@ struct QueryDataTimestamp
8285typedef struct QueryDataTimestamp QueryDataTimestamp;
8386
8487// / Pipeline statistics query data.
88+
8589// / This structure is filled by IQuery::GetData() for Diligent::QUERY_TYPE_PIPELINE_STATISTICS query type.
8690// /
8791// / \warning In OpenGL backend the only field that will be populated is ClippingInvocations.
@@ -128,6 +132,7 @@ struct QueryDataPipelineStatistics
128132typedef struct QueryDataPipelineStatistics QueryDataPipelineStatistics;
129133
130134// / Duration query data.
135+
131136// / This structure is filled by IQuery::GetData() for Diligent::QUERY_TYPE_DURATION query type.
132137struct QueryDataDuration
133138{
@@ -192,15 +197,15 @@ DILIGENT_BEGIN_INTERFACE(IQuery, IDeviceObject)
192197 // / \param [in] AutoInvalidate - Whether to invalidate the query if the results are available and release associated resources.
193198 // / An application should typically always invalidate completed queries unless
194199 // / it needs to retrieve the same data through GetData() multiple times.
195- // / A query will not be invalidated if pData is nullptr.
200+ // / A query will not be invalidated if ` pData` is ` nullptr` .
196201 // /
197- // / \return true if the query data is available and false otherwise.
202+ // / \return ` true` if the query data is available and ` false` otherwise.
198203 // /
199- // / \note In Direct3D11 backend timestamp queries will only be available after FinishFrame is called
200- // / for the frame in which they were collected.
204+ // / In Direct3D11 backend timestamp queries will only be available after FinishFrame is called
205+ // / for the frame in which they were collected.
201206 // /
202- // / If AutoInvalidate is set to true, and the data have been retrieved, an application
203- // / must not call GetData() until it begins and ends the query again.
207+ // / If ` AutoInvalidate` is set to true, and the data have been retrieved, an application
208+ // / must not call GetData() until it begins and ends the query again.
204209 VIRTUAL Bool METHOD (GetData)(THIS_
205210 void * pData,
206211 Uint32 DataSize,
0 commit comments