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:
parent
53fe3423e2
commit
187748e4d3
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user