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:
parent
4965f8c318
commit
7bbb6ea93b
@ -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,
|
||||
|
@ -595,6 +595,9 @@ namespace dxvk {
|
||||
|
||||
void commitComputeBarriers();
|
||||
|
||||
DxvkQueryHandle allocateQuery(
|
||||
const DxvkQueryRevision& query);
|
||||
|
||||
void resetQueryPool(
|
||||
const Rc<DxvkQueryPool>& pool);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user