libs/vkd3d: Implement EndQuery() for QUERY_TYPE_TIMESTAMP.

This commit is contained in:
Sven Hesse
2017-08-25 15:09:31 +02:00
parent 67587f81e4
commit 988e1a96de
3 changed files with 51 additions and 0 deletions

View File

@@ -1704,6 +1704,14 @@ static const struct ID3D12QueryHeapVtbl d3d12_query_heap_vtbl =
d3d12_query_heap_GetDevice,
};
struct d3d12_query_heap *unsafe_impl_from_ID3D12QueryHeap(ID3D12QueryHeap *iface)
{
if (!iface)
return NULL;
assert(iface->lpVtbl == &d3d12_query_heap_vtbl);
return impl_from_ID3D12QueryHeap(iface);
}
HRESULT d3d12_query_heap_create(struct d3d12_device *device, struct d3d12_query_heap **heap,
const D3D12_QUERY_HEAP_DESC *desc)
{