VideoBackends:D3D12: Set query type
This commit is contained in:
parent
6ba7573877
commit
57b2ea663e
|
@ -71,6 +71,7 @@ void PerfQuery::EnableQuery(PerfQueryGroup type)
|
||||||
ActiveQuery& entry = m_query_buffer[m_query_next_pos];
|
ActiveQuery& entry = m_query_buffer[m_query_next_pos];
|
||||||
ASSERT(!entry.has_value && !entry.resolved);
|
ASSERT(!entry.has_value && !entry.resolved);
|
||||||
entry.has_value = true;
|
entry.has_value = true;
|
||||||
|
entry.query_type = type;
|
||||||
|
|
||||||
g_dx_context->GetCommandList()->BeginQuery(m_query_heap.Get(), D3D12_QUERY_TYPE_OCCLUSION,
|
g_dx_context->GetCommandList()->BeginQuery(m_query_heap.Get(), D3D12_QUERY_TYPE_OCCLUSION,
|
||||||
m_query_next_pos);
|
m_query_next_pos);
|
||||||
|
|
|
@ -31,7 +31,7 @@ private:
|
||||||
struct ActiveQuery
|
struct ActiveQuery
|
||||||
{
|
{
|
||||||
u64 fence_value;
|
u64 fence_value;
|
||||||
PerfQueryType query_type;
|
PerfQueryGroup query_type;
|
||||||
bool has_value;
|
bool has_value;
|
||||||
bool resolved;
|
bool resolved;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue