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

[d3d11] Add a comment explaining ID3D11Predicate/ID3D11Query hack

This commit is contained in:
Philip Rebohle 2019-09-25 22:18:08 +02:00
parent 53fe3423e2
commit 187748e4d3
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -73,6 +73,8 @@ namespace dxvk {
static HRESULT ValidateDesc(const D3D11_QUERY_DESC1* pDesc);
static ID3D11Predicate* AsPredicate(ID3D11Query* pQuery) {
// ID3D11Predicate and ID3D11Query have the same vtable. This
// saves us some headache in all query-related functions.
return static_cast<ID3D11Predicate*>(pQuery);
}