Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,422 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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?
There is a D3D12PredicationQueries sample you can learn. Anyway you can submit an issue for an ID3D11Predicate sample.