1 /* 2 * Copyright 2019 Google LLC 3 * SPDX-License-Identifier: MIT 4 * 5 * based in part on anv and radv which are: 6 * Copyright © 2015 Intel Corporation 7 * Copyright © 2016 Red Hat. 8 * Copyright © 2016 Bas Nieuwenhuizen 9 */ 10 11 #ifndef VN_QUERY_POOL_H 12 #define VN_QUERY_POOL_H 13 14 #include "vn_common.h" 15 16 struct vn_feedback_buffer; 17 18 struct vn_query_pool { 19 struct vn_object_base base; 20 21 VkAllocationCallbacks allocator; 22 23 /* non-NULL if VN_PERF_NO_QUERY_FEEDBACK is disabled */ 24 struct vn_feedback_buffer *fb_buf; 25 uint32_t result_array_size; 26 bool saturate_on_overflow; 27 }; 28 VK_DEFINE_NONDISP_HANDLE_CASTS(vn_query_pool, 29 base.base, 30 VkQueryPool, 31 VK_OBJECT_TYPE_QUERY_POOL) 32 33 #endif /* VN_QUERY_POOL_H */ 34