• Home
  • Raw
  • Download

Lines Matching full:queries

1 # Queries  chapter
3 OpenGL queries generally have a straightforward mapping to Vulkan queries, with the exception of
4 `GL_PRIMITIVES_GENERATED`. Some Vulkan queries are active only inside a render pass, while others
7 ## Outside Render Pass Queries
9 The following queries are recorded outside a render pass. If a render pass is active when
10 `begin()` or `end()` is called for these queries, it will be broken.
15 ## Inside Render Pass Queries
17 The rest of the queries are active only inside render passes. The context (`ContextVk`) keeps track
18 of currently active "render pass queries" and automatically pauses and resumes them as render passes
28 active queries.
30 active queries.
32 In Vulkan, a query cannot be paused or resumed, only begun and ended. This means that GL queries
33 that span multiple render passes must use multiple Vulkan queries whose results are accumulated.
43 Later on, `QueryVk::getResult()` would take the sum of the current and all stashed Vulkan queries as
50 done by pausing (`ContextVk::pauseRenderPassQueriesIfActive`) the queries before the draw call and
54 `ContextVk`, so queries will not be activated. In the future, if any `UtilsVk` functions use the
56 and resume queries.
58 ### Transform Feedback Queries argument
60 OpenGL has two distinct queries `GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN` and
63 be active at a time. This forces ANGLE to have the two GL queries share their Vulkan queries when
64 both transform feedback queries are active.
76 their Vulkan queries.
88 When a render pass is broken and active queries are paused
89 (`ContextVk::pauseRenderPassQueriesIfActive`), only one of the queries will close the shared Vulkan
92 When a render pass is started and active queries are resumed
93 (`ContextVk::resumeRenderPassQueriesIfActive`), only one of the queries will allocate and start a
98 - Simultaneous begin of the two queries:
106 - Simultaneous end of the two queries:
132 - Queries getting deleted / rebound when the other is active, for example: