-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
Issue automatically imported from old repo: EmbarkStudios/rust-gpu#1042
Old labels: t: enhancement
Originally creatd by SiebenCorgie on 2023-04-21T16:42:49Z
SpirV allows defining import
and export
[0] for linking separate Shader modules [1] post compilation.
Apparently SpirV linking is already used within rust-gpu, but not exposed. Therefore we can't use extern "C"
as we usually would.
This functionality would be useful, for instance when building shader permutation systems.
The enhancement would basically be allowing extern C
, #[no_mangle]
etc. to map to (possibly named) import
/export
decorated values whenever the Linkage
capability on spirv-builder
is enabled.
Metadata
Metadata
Assignees
Labels
No labels