From 67587f81e4173a48dad9bda8556e39791005170b Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Fri, 25 Aug 2017 15:08:05 +0200 Subject: [PATCH] libs/vkd3d: Remember the Query Heap creation properties. --- libs/vkd3d/resource.c | 1 + libs/vkd3d/vkd3d_private.h | 3 +++ 2 files changed, 4 insertions(+) diff --git a/libs/vkd3d/resource.c b/libs/vkd3d/resource.c index eeb598e5..f5cc99c9 100644 --- a/libs/vkd3d/resource.c +++ b/libs/vkd3d/resource.c @@ -1718,6 +1718,7 @@ HRESULT d3d12_query_heap_create(struct d3d12_device *device, struct d3d12_query_ object->ID3D12QueryHeap_iface.lpVtbl = &d3d12_query_heap_vtbl; object->refcount = 1; object->device = device; + object->desc = *desc; pool_info.sType = VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO; pool_info.pNext = NULL; diff --git a/libs/vkd3d/vkd3d_private.h b/libs/vkd3d/vkd3d_private.h index 37f7bf23..1c1ea3f5 100644 --- a/libs/vkd3d/vkd3d_private.h +++ b/libs/vkd3d/vkd3d_private.h @@ -257,6 +257,9 @@ struct d3d12_query_heap { ID3D12QueryHeap ID3D12QueryHeap_iface; LONG refcount; + + D3D12_QUERY_HEAP_DESC desc; + VkQueryPool vk_query_pool; struct d3d12_device *device;