-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
D3D12 back-end debug warning on empty scissor rectangle #3462
Comments
What happened then? |
My fault was to tell the info queue to crash when warnings occured, thats why I closed the issue. Although, there is something against the spec, but it does not seem to cause graphical issues :) D3D12 WARNING: ID3D12CommandList::DrawIndexedInstanced: Viewport: 0 is non-empty while the corresponding scissor rectangle is empty. Nothing will be written to the render target when this viewport is selected. In D3D12, scissor testing is always enabled. [ EXECUTION WARNING #695: DRAW_EMPTY_SCISSOR_RECTANGLE] |
Well, if somehow the library outputs data that makes the current DX12 back-end emit warnings we should fix either the back-end either the library. However I've been unable to reproduce that warning. I even tried to add
In the render loop in Could you clarify:
|
Im using the newest docking branch, To enable the debug layer: Then create the debug interface: After that, query the info queue from the created d3d12 device: There also seems to be a little bug with the multi-viewports, because the DXGI format of the pipeline state does not match with the format of the created multi-viewport window. I fixed it with replacing the sd1.Format = DXGI_FORMAT_R8G8B8A8_UNORM; with sd1.Format = g_RTVFormat; so that the swapchain formats match! |
Ok |
Thank you @BeastLe9enD! This has been fixed by #3472 and I've also added the |
Also pushed this in docking branch with |
Hello,
its seems that there is a bug in the D3D12 version that let imgui crash if you draw many objects.
If u want to test it yourself, just show the demo window and open all tree nodes / collapsing headers
it crashs at
ctx->DrawIndexedInstanced(pcmd->ElemCount, 1, pcmd->IdxOffset + global_idx_offset, pcmd->VtxOffset + global_vtx_offset, 0);
in RenderDrawData(ImDrawData* draw_data, ID3D12GraphicsCommandList* ctx)
The text was updated successfully, but these errors were encountered: