ext: Add GL_EXT_opacity_micromap_ray_query_mode#336
Open
dgkoch wants to merge 1 commit into
Open
Conversation
Adds a GLSL extension to expose the OpacityMicromapIdKHR execution mode from SPV_KHR_opacity_micromap. Introduces gl_EnableOpacityMicromapEXT, a bool built-in constant (default false) that declares whether the shader may perform ray query traversal against acceleration structures containing opacity micromaps. The built-in may be redeclared as true for unconditional enablement, or with layout(constant_id = N) for API-controlled pipelines. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
|
what exactly do you mean by "a clean-room implementation" ? |
Contributor
Author
It means - I provided the desired name of the extension, the name of the built-in variable, and a pointer to the SPV extension this should map to. The rest was derived from standard GLSL behaviour and practices and prior art. It was forbidden to look for existing drafts or merge requests for this extension. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GLSL_EXT_opacity_micromap_ray_query_mode.txt, a new GLSL extension spec exposing theOpacityMicromapIdKHRexecution mode fromSPV_KHR_opacity_micromapgl_EnableOpacityMicromapEXT, a bool built-in constant (defaultfalse) declaring whether the shader may perform ray query traversal against acceleration structures containing opacity micromapstruefor unconditional enablement, or withlayout(constant_id = N)for API-controlled pipelines without recompilationREADME.adocNotes
This specification was developed as a clean-room implementation using Claude Code (claude-sonnet-4-6), referencing
SPV_KHR_opacity_micromapand existing sibling GLSL extensions for format and context, but no prior draft of this specific extension.🤖 Generated with Claude Code