question

OleksiyF-1604 avatar image
0 Votes"
OleksiyF-1604 asked XiaopoYang-MSFT answered

how to use ID3D11Predicate correctly?

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-apic++
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

XiaopoYang-MSFT avatar image
0 Votes"
XiaopoYang-MSFT answered

There is a D3D12PredicationQueries sample you can learn. Anyway you can submit an issue for an ID3D11Predicate sample.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.