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

Clarify draw calls without fragment outputs for WebGL 1.0 #3584

Open
lexaknyazev opened this issue Sep 2, 2023 · 1 comment
Open

Clarify draw calls without fragment outputs for WebGL 1.0 #3584

lexaknyazev opened this issue Sep 2, 2023 · 1 comment
Assignees

Comments

@lexaknyazev
Copy link
Member

WebGL 1.0, section "Fragment shader output":

If a fragment shader writes to neither gl_FragColor nor gl_FragData, the values of the fragment colors following shader execution are untouched.

WebGL 2.0, section "Draw Buffers":

If any draw buffer with an attachment does not have a defined fragment shader output, draws generate INVALID_OPERATION, unless all 4 channels of colorMask are set to false.

In practice, the WebGL 2.0 rule also applies to WebGL 1.0 contexts.

@kenrussell
Copy link
Member

Per WebGL WG conference call of 2024-01-25: the plan is to just write in the spec what implementations are already doing, and write an associated test.

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

No branches or pull requests

2 participants