Skip to content

Commit 237389b

Browse files
committed
isCreateRequest Fix and Added TODO comments for QueryPool
1 parent f1086b0 commit 237389b

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

include/nbl/video/IQueryPool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class IQueryPool : public core::IReferenceCounted, public IBackendObject
1616
EQT_OCCLUSION = 0,
1717
EQT_PIPELINE_STATISTICS = 1,
1818
EQT_TIMESTAMP = 2,
19-
EQT_PERFORMANCE_QUERY = 1000116000, // VK_KHR_performance_query
19+
EQT_PERFORMANCE_QUERY = 1000116000, // VK_KHR_performance_query // TODO: We don't support this fully yet -> needs Acquire/ReleaseProfilingLock + Counters Information report from physical device
2020
EQT_ACCELERATION_STRUCTURE_COMPACTED_SIZE = 1000150000, // VK_KHR_acceleration_structure
2121
EQT_ACCELERATION_STRUCTURE_SERIALIZATION_SIZE = 1000150001, // VK_KHR_acceleration_structure
2222
};

src/nbl/video/COpenGLQueryPool.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ class COpenGLQueryPool final : public IQueryPool
3838
}
3939
else
4040
{
41+
// TODO: Add ARB_pipeline_statistics support: https://www.khronos.org/registry/OpenGL/extensions/ARB/ARB_pipeline_statistics_query.txt
4142
assert(false && "QueryType is not supported.");
4243
}
4344
}

src/nbl/video/IOpenGL_LogicalDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ namespace impl
101101
}
102102
constexpr static inline bool isCreationRequest(E_REQUEST_TYPE rt)
103103
{
104-
return !isDestroyRequest(rt) && rt<=ERT_COMPUTE_PIPELINE_CREATE;
104+
return !isDestroyRequest(rt) && rt<=ERT_QUERY_POOL_CREATE;
105105
}
106106
constexpr static inline bool isWaitlessRequest(E_REQUEST_TYPE rt)
107107
{

0 commit comments

Comments
 (0)