1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-03-01 19:29:16 +01:00

[dxvk] More query stuff

This commit is contained in:
Philip Rebohle 2018-02-14 03:16:39 +01:00
parent 4965f8c318
commit 7bbb6ea93b
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 12 additions and 2 deletions

View File

@ -64,7 +64,7 @@ namespace dxvk {
void DxvkContext::beginQuery(const DxvkQueryRevision& query) {
DxvkQueryHandle handle; // TODO = allocateQuery(...)
DxvkQueryHandle handle = this->allocateQuery(query);
m_cmd->cmdBeginQuery(
handle.queryPool,
@ -1602,6 +1602,13 @@ namespace dxvk {
}
DxvkQueryHandle DxvkContext::allocateQuery(const DxvkQueryRevision& query) {
// TODO implement
return DxvkQueryHandle { };
}
void DxvkContext::resetQueryPool(const Rc<DxvkQueryPool>& pool) {
this->renderPassEnd();
@ -1613,7 +1620,7 @@ namespace dxvk {
void DxvkContext::beginActiveQueries() {
for (const DxvkQueryRevision& query : m_activeQueries) {
DxvkQueryHandle handle; // TODO = allocateQuery(...)
DxvkQueryHandle handle = this->allocateQuery(query);
m_cmd->cmdBeginQuery(
handle.queryPool,

View File

@ -595,6 +595,9 @@ namespace dxvk {
void commitComputeBarriers();
DxvkQueryHandle allocateQuery(
const DxvkQueryRevision& query);
void resetQueryPool(
const Rc<DxvkQueryPool>& pool);