Open stefnotch opened 3 months ago
Regarding mangling, this is what we currently have
Mangling everything and exposing them that way. Names would look like
bevy__pbr_lighting_some__constant
. Name mangling becomes part of the specification.Requiring that everything is re-exported from the root module. Names would be short. Potentially very verbose and repetitive root modules.
Generating a bindings map. It would look like
{ "bevy_pbr::lighting::some_constant": "mangled name goes here" }
. Bindings map is required for using the generated.wgsl
.each linker exposes a small library to mangle/unmangle names according to linker specifics from ncthbrt
re: mangling, another option:
@public(myPkg_backgroundColor)
. How 'bout we make new issues for each of the remaining tough issues listed above? (and close this one).
Sounds good