-
Notifications
You must be signed in to change notification settings - Fork 953
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
Set the new naga capabilities #3494
Conversation
add `Features::SHADER_EARLY_DEPTH_TEST`
I'm going through the process of upgrading to wgpu 0.16, and this PR has broken my application. The following excerpt of my fragment shader for imposter-based drawing of atoms (spheres) has worked in all previous version of wgpu, on all platforms I have access to test (Metal on macOS, Vulkan on Linux, DX12 on Windows, WebGL2 for web):
Why is this feature gated for GLES 3.1+ only? As noted in the code review above, it works perfectly fine on other platforms. |
@maaku what error are you getting? The snippet seems unrelated to both multisampled shading and early depth test |
Here is the whole fragment shader:
|
That shader doesn't seem to contain the Also, trying to validate the shader via naga cli, I'm getting:
Which sounds right since we don't have conservative depth implemented in the GLSL frontend. |
Thank you. I think I misunderstood how early fragment tests worked. I thought that setting was required for what I was doing. Removing it fixes the problem and I was able to upgrade to 0.16 without any other major issues. Thank you. |
Checklist
cargo clippy
.RUSTFLAGS=--cfg=web_sys_unstable_apis cargo clippy --target wasm32-unknown-unknown
if applicable.Connections
Description
Features::SHADER_EARLY_DEPTH_TEST
MULTISAMPLED_SHADING
downlevel flag for gles and dx11Testing