summaryrefslogtreecommitdiff
path: root/chapters/commonvalidity/query_results_common.adoc
blob: 139d4565c7293032c40e0da3ac178776ebd7975c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright 2023-2024 The Khronos Group Inc.
//
// SPDX-License-Identifier: CC-BY-4.0

// Common Valid Usage
// Common to query results commands

  * [[VUID-{refpage}-queryCount-09438]]
    If pname:queryCount is greater than 1, pname:stride must: not be zero
  * [[VUID-{refpage}-queryType-09439]]
    If the pname:queryType used to create pname:queryPool was
    ename:VK_QUERY_TYPE_TIMESTAMP, pname:flags must: not contain
    ename:VK_QUERY_RESULT_PARTIAL_BIT
ifdef::VK_KHR_performance_query[]
  * [[VUID-{refpage}-queryType-09440]]
    If the pname:queryType used to create pname:queryPool was
    ename:VK_QUERY_TYPE_PERFORMANCE_QUERY_KHR, pname:flags must: not contain
    ename:VK_QUERY_RESULT_WITH_AVAILABILITY_BIT,
ifdef::VK_KHR_video_queue[]
    ename:VK_QUERY_RESULT_WITH_STATUS_BIT_KHR,
endif::VK_KHR_video_queue[]
    ename:VK_QUERY_RESULT_PARTIAL_BIT, or ename:VK_QUERY_RESULT_64_BIT
  * [[VUID-{refpage}-queryType-09441]]
    If the pname:queryType used to create pname:queryPool was
    ename:VK_QUERY_TYPE_PERFORMANCE_QUERY_KHR, the pname:queryPool must:
    have been recorded once for each pass as retrieved via a call to
    flink:vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR
endif::VK_KHR_performance_query[]
ifdef::VK_KHR_video_queue[]
  * [[VUID-{refpage}-queryType-09442]]
    If the pname:queryType used to create pname:queryPool was
    ename:VK_QUERY_TYPE_RESULT_STATUS_ONLY_KHR, then pname:flags must:
    include ename:VK_QUERY_RESULT_WITH_STATUS_BIT_KHR
  * [[VUID-{refpage}-flags-09443]]
    If pname:flags includes ename:VK_QUERY_RESULT_WITH_STATUS_BIT_KHR, then
    it must: not include ename:VK_QUERY_RESULT_WITH_AVAILABILITY_BIT
endif::VK_KHR_video_queue[]

// Common Valid Usage