Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D3D 11 Query result warning #107

Open
aconstlink opened this issue Oct 17, 2024 · 1 comment
Open

D3D 11 Query result warning #107

aconstlink opened this issue Oct 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@aconstlink
Copy link
Owner

ID3D11DeviceContext::Begin: Begin is being invoked on a Query, where the previous results have not been obtained with GetData. This is valid; but unusual

D3D11 issues a warning. See tests for streamout.

@aconstlink aconstlink added the bug Something isn't working label Oct 17, 2024
@aconstlink
Copy link
Owner Author

aconstlink commented Oct 19, 2024

Observed the problem and it may not be fixable. The query is done independently of the render call, or where the streamed out data is used.

The query is done if the streamout being/end. If auto_draw is used, that result is not used. auto_draw knows that already and may not use a CPU round-trip. I did not decide for now where that is used, so this one is not fixable yet.

use( streamout ) <- query begin
unuse( streamout)  <- query end

render( streamed out data ) <- may or may not use auto_draw...

d3d11 auto_draw does not need the captured number of primitives because it is auto => less CPU trips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant