There is a D3D12PredicationQueries sample you can learn. Anyway you can submit an issue for an ID3D11Predicate sample.
how to use ID3D11Predicate correctly?
Oleksiy F
6
Reputation points
ID3D11Query with D3D11_QUERY_OCCLUSION is pretty simple. Every frame after populating depth buffer with meshes - it's loop with the same meshes, where for every mesh it's begin query, draw call, end query, wait 2 frames, get data. And every mesh has its own query object naturally.
But how do I use ID3D11Predicate?
I do CreatePredicate with D3D11_QUERY_OCCLUSION_PREDICATE description, but what's next? What's the sequence of actions?
Windows development | Windows API - Win32
Developer technologies | C++
Developer technologies | C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
1 answer
Sort by: Most helpful
-
Xiaopo Yang - MSFT 12,736 Reputation points Microsoft External Staff
2022-05-30T06:53:01.41+00:00