From 187748e4d3dc9623ac4ff891b86dc58446d2a888 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Wed, 25 Sep 2019 22:18:08 +0200 Subject: [PATCH] [d3d11] Add a comment explaining ID3D11Predicate/ID3D11Query hack --- src/d3d11/d3d11_query.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/d3d11/d3d11_query.h b/src/d3d11/d3d11_query.h index 10af357c8..ba6317ebe 100644 --- a/src/d3d11/d3d11_query.h +++ b/src/d3d11/d3d11_query.h @@ -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(pQuery); }