mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +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) {
|
void DxvkContext::beginQuery(const DxvkQueryRevision& query) {
|
||||||
DxvkQueryHandle handle; // TODO = allocateQuery(...)
|
DxvkQueryHandle handle = this->allocateQuery(query);
|
||||||
|
|
||||||
m_cmd->cmdBeginQuery(
|
m_cmd->cmdBeginQuery(
|
||||||
handle.queryPool,
|
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) {
|
void DxvkContext::resetQueryPool(const Rc<DxvkQueryPool>& pool) {
|
||||||
this->renderPassEnd();
|
this->renderPassEnd();
|
||||||
|
|
||||||
@ -1613,7 +1620,7 @@ namespace dxvk {
|
|||||||
|
|
||||||
void DxvkContext::beginActiveQueries() {
|
void DxvkContext::beginActiveQueries() {
|
||||||
for (const DxvkQueryRevision& query : m_activeQueries) {
|
for (const DxvkQueryRevision& query : m_activeQueries) {
|
||||||
DxvkQueryHandle handle; // TODO = allocateQuery(...)
|
DxvkQueryHandle handle = this->allocateQuery(query);
|
||||||
|
|
||||||
m_cmd->cmdBeginQuery(
|
m_cmd->cmdBeginQuery(
|
||||||
handle.queryPool,
|
handle.queryPool,
|
||||||
|
@ -595,6 +595,9 @@ namespace dxvk {
|
|||||||
|
|
||||||
void commitComputeBarriers();
|
void commitComputeBarriers();
|
||||||
|
|
||||||
|
DxvkQueryHandle allocateQuery(
|
||||||
|
const DxvkQueryRevision& query);
|
||||||
|
|
||||||
void resetQueryPool(
|
void resetQueryPool(
|
||||||
const Rc<DxvkQueryPool>& pool);
|
const Rc<DxvkQueryPool>& pool);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user