dx12 gpu queries

This commit is contained in:
Turanszki Janos
2019-11-18 20:34:26 +00:00
parent 8debd4b937
commit 2aff1c5b7f
3 changed files with 231 additions and 53 deletions
File diff suppressed because it is too large Load Diff
+13
View File
@@ -44,6 +44,17 @@ namespace wiGraphics
ID3D12CommandSignature* drawInstancedIndirectCommandSignature = nullptr;
ID3D12CommandSignature* drawIndexedInstancedIndirectCommandSignature = nullptr;
ID3D12QueryHeap* querypool_timestamp = nullptr;
ID3D12QueryHeap* querypool_occlusion = nullptr;
static const size_t timestamp_query_count = 1024;
static const size_t occlusion_query_count = 1024;
wiContainers::ThreadSafeRingBuffer<UINT, timestamp_query_count> free_timestampqueries;
wiContainers::ThreadSafeRingBuffer<UINT, occlusion_query_count> free_occlusionqueries;
ID3D12Resource* querypool_timestamp_readback = nullptr;
ID3D12Resource* querypool_occlusion_readback = nullptr;
D3D12MA::Allocation* allocation_querypool_timestamp_readback = nullptr;
D3D12MA::Allocation* allocation_querypool_occlusion_readback = nullptr;
struct DescriptorAllocator
{
ID3D12DescriptorHeap* heap = nullptr;
@@ -199,6 +210,8 @@ namespace wiGraphics
DEPTHSTENCILVIEW,
SAMPLER,
PIPELINE,
QUERY_TIMESTAMP,
QUERY_OCCLUSION,
} type;
uint64_t frame;
wiCPUHandle handle;
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wiVersion
// minor features, major updates
const int minor = 32;
// minor bug fixes, alterations, refactors, updates
const int revision = 6;
const int revision = 7;
long GetVersion()