You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When validating the render pipeline, this condition gets triggered:
DAWN_INVALID_IF(!format->HasStencil() && StencilTestEnabled(descriptor),
"Depth stencil format (%s) doesn't have stencil aspect while stencil "
"test or stencil write is enabled.",
descriptor->format);
Version/Branch of Dear ImGui:
Version 1.9.0, Branch: master
Back-ends:
imgui_impl_wgpu.cpp
Compiler, OS:
Windows 10 + MSVC 2022
Full config/build information:
Details:
Recently there was a change in Dawn's native WebGPU implementation where they no longer gave sensible defaults to stencil operations for render pipelines:
https://dawn.googlesource.com/dawn/+/628a1eb2a720bef3dd25bf352094c76a74514efe%5E%21/#F1
When validating the render pipeline, this condition gets triggered:
which calls this function:
Those wgpu::StencilOperation::Keep are actually 1 not 0 so the defaults immediately fail validation if you don't set them.
In imgui_impl_wgpu.cpp on line 651 you create a WGPUDepthStencilState and set the compare functions:
May I humbly request we add these lines below:
I was able to confirm this sets the expected defaults and passes pipeline validation.
Screenshots/Video:
No response
Minimal, Complete and Verifiable Example code:
No response
The text was updated successfully, but these errors were encountered: