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

Allow Early Fragment Tests to be forced #4891

Open
toji opened this issue Sep 20, 2024 · 0 comments
Open

Allow Early Fragment Tests to be forced #4891

toji opened this issue Sep 20, 2024 · 0 comments
Labels
wgsl WebGPU Shading Language Issues
Milestone

Comments

@toji
Copy link
Member

toji commented Sep 20, 2024

Discussion started in #4878

Early-Z discards are an optimization that is disabled when fragment shaders have side effects such as writing to a storage binding. There are occasions where it's desirable to have both early-z discards and still write to storage, though, such as an algorithm that builds visibility buffers.

Native APIs have shader attributes that can be set for the fragment entry point to force this behavior.

While not an Milestone 0 priority, we should evaluate this functionality for future iterations of the spec.

@toji toji added the wgsl WebGPU Shading Language Issues label Sep 20, 2024
@toji toji added this to the Milestone 3+ milestone Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wgsl WebGPU Shading Language Issues
Projects
None yet
Development

No branches or pull requests

1 participant