1// Copyright 2023-2024 The Khronos Group Inc. 2// 3// SPDX-License-Identifier: CC-BY-4.0 4 5// Common Valid Usage 6// Common to query results commands 7 8 * [[VUID-{refpage}-queryCount-09438]] 9 If pname:queryCount is greater than 1, pname:stride must: not be zero 10 * [[VUID-{refpage}-queryType-09439]] 11 If the pname:queryType used to create pname:queryPool was 12 ename:VK_QUERY_TYPE_TIMESTAMP, pname:flags must: not contain 13 ename:VK_QUERY_RESULT_PARTIAL_BIT 14ifdef::VK_KHR_performance_query[] 15 * [[VUID-{refpage}-queryType-09440]] 16 If the pname:queryType used to create pname:queryPool was 17 ename:VK_QUERY_TYPE_PERFORMANCE_QUERY_KHR, pname:flags must: not contain 18 ename:VK_QUERY_RESULT_WITH_AVAILABILITY_BIT, 19ifdef::VK_KHR_video_queue[] 20 ename:VK_QUERY_RESULT_WITH_STATUS_BIT_KHR, 21endif::VK_KHR_video_queue[] 22 ename:VK_QUERY_RESULT_PARTIAL_BIT, or ename:VK_QUERY_RESULT_64_BIT 23 * [[VUID-{refpage}-queryType-09441]] 24 If the pname:queryType used to create pname:queryPool was 25 ename:VK_QUERY_TYPE_PERFORMANCE_QUERY_KHR, the pname:queryPool must: 26 have been recorded once for each pass as retrieved via a call to 27 flink:vkGetPhysicalDeviceQueueFamilyPerformanceQueryPassesKHR 28endif::VK_KHR_performance_query[] 29ifdef::VK_KHR_video_queue[] 30 * [[VUID-{refpage}-queryType-09442]] 31 If the pname:queryType used to create pname:queryPool was 32 ename:VK_QUERY_TYPE_RESULT_STATUS_ONLY_KHR, then pname:flags must: 33 include ename:VK_QUERY_RESULT_WITH_STATUS_BIT_KHR 34 * [[VUID-{refpage}-flags-09443]] 35 If pname:flags includes ename:VK_QUERY_RESULT_WITH_STATUS_BIT_KHR, then 36 it must: not include ename:VK_QUERY_RESULT_WITH_AVAILABILITY_BIT 37endif::VK_KHR_video_queue[] 38 39// Common Valid Usage 40