1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-30 11:52:11 +01:00

Merge pull request #46 from libcg/query_event

[d3d11] mock D3D11_QUERY_EVENT
This commit is contained in:
Philip Rebohle 2018-02-01 08:09:49 +01:00 committed by GitHub
commit 0791c8ca4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,7 @@ namespace dxvk {
: m_device(device), m_desc(desc) {
switch (desc.Query) {
// Other query types are currently unsupported
case D3D11_QUERY_EVENT:
case D3D11_QUERY_OCCLUSION:
case D3D11_QUERY_TIMESTAMP:
case D3D11_QUERY_TIMESTAMP_DISJOINT:
@ -102,6 +103,10 @@ namespace dxvk {
return S_OK;
switch (m_desc.Query) {
case D3D11_QUERY_EVENT:
*static_cast<BOOL*>(pData) = TRUE;
return S_OK;
case D3D11_QUERY_OCCLUSION:
*static_cast<UINT64*>(pData) = 1;
return S_OK;