Expose the translation units and parsers for naga frontends #6132
Labels
area: api
Issues related to API surface
naga
Shader Translator
type: enhancement
New feature or request
Is your feature request related to a problem? Please describe.
When building tooling or extensions for wgsl, or other shader languages, it'd be very useful to be able to parse the source code without having it be well formed. This would more easily enable for example building a module/import system that allows for cyclical imports of types and functions (useful when for example a main module has types defined in it and a child module needs to refer to the type).
Describe the solution you'd like
Exposing the relevant types that would allow translation units to be manipulated and manually lowered.
Describe alternatives you've considered
Building or vendoring in the naga frontends into the source code.
The text was updated successfully, but these errors were encountered: