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

Proposal: EXT_conservative_depth #3549

Merged

Conversation

lexaknyazev
Copy link
Member

Writing to gl_FragDepth, e.g., to render soft particles, disables implicit hardware optimizations and therefore increases the number of wasted fragment shader invocations.

The proposed extension would allow applications to hint hardware in what direction the written fragment depth is different from the rasterizer’s output. This re-enables implicit hardware optimizations and therefore prevents fragment shader invocations that are supposed to fail the depth test anyway.

Copy link
Member

@kenrussell kenrussell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good per discussion in WebGL working group.

@kenrussell kenrussell merged commit f9e3569 into KhronosGroup:main Jun 29, 2023
1 check passed
@lexaknyazev lexaknyazev deleted the proposal-conservative-depth branch July 2, 2023 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants