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;