MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / QueryResult

Method QueryResult

deps/LLGL/sources/Renderer/Vulkan/VKCommandQueue.cpp:53–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51/* ----- Queries ----- */
52
53bool VKCommandQueue::QueryResult(
54 QueryHeap& queryHeap,
55 std::uint32_t firstQuery,
56 std::uint32_t numQueries,
57 void* data,
58 std::size_t dataSize)
59{
60 auto& queryHeapVK = LLGL_CAST(VKQueryHeap&, queryHeap);
61
62 /* Store result directly into output parameter */
63 auto stateResult = GetQueryResults(queryHeapVK, firstQuery, numQueries, data, dataSize);
64 if (stateResult == VK_NOT_READY)
65 return false;
66
67 VKThrowIfFailed(stateResult, "failed to retrieve results from Vulkan query pool");
68
69 return true;
70}
71
72#if 0
73bool VKCommandBuffer::QueryPipelineStatisticsResult(QueryHeap& queryHeap, QueryPipelineStatistics& result)

Callers 5

mainFunction · 0.45
MeasureTimeMethod · 0.45
mainFunction · 0.45
GetAndSyncQueryResultMethod · 0.45
PrintQueryResultsMethod · 0.45

Calls 1

VKThrowIfFailedFunction · 0.85

Tested by 3

mainFunction · 0.36
MeasureTimeMethod · 0.36
mainFunction · 0.36