* [[VUID-{refpage}-queryPool-01922]] pname:queryPool must: have been created with a pname:queryType that differs from that of any queries that are <> within pname:commandBuffer * [[VUID-{refpage}-None-00807]] All queries used by the command must: be unavailable * [[VUID-{refpage}-queryType-00800]] If the <> feature is not enabled, or the pname:queryType used to create pname:queryPool was not ename:VK_QUERY_TYPE_OCCLUSION, pname:flags must: not contain ename:VK_QUERY_CONTROL_PRECISE_BIT * [[VUID-{refpage}-query-00802]] pname:query must: be less than the number of queries in pname:queryPool * [[VUID-{refpage}-queryType-00803]] If the pname:queryType used to create pname:queryPool was ename:VK_QUERY_TYPE_OCCLUSION, the sname:VkCommandPool that pname:commandBuffer was allocated from must: support graphics operations * [[VUID-{refpage}-queryType-00804]] If the pname:queryType used to create pname:queryPool was ename:VK_QUERY_TYPE_PIPELINE_STATISTICS and any of the pname:pipelineStatistics indicate graphics operations, the sname:VkCommandPool that pname:commandBuffer was allocated from must: support graphics operations * [[VUID-{refpage}-queryType-00805]] If the pname:queryType used to create pname:queryPool was ename:VK_QUERY_TYPE_PIPELINE_STATISTICS and any of the pname:pipelineStatistics indicate compute operations, the sname:VkCommandPool that pname:commandBuffer was allocated from must: support compute operations ifdef::VK_VERSION_1_1[] * [[VUID-{refpage}-commandBuffer-01885]] pname:commandBuffer must: not be a protected command buffer endif::VK_VERSION_1_1[] ifdef::VK_VERSION_1_1,VK_KHR_multiview[] * [[VUID-{refpage}-query-00808]] If called within a render pass instance, the sum of pname:query and the number of bits set in the current subpass's view mask must: be less than or equal to the number of queries in pname:queryPool endif::VK_VERSION_1_1,VK_KHR_multiview[]