Reexport items needed to create a ShaderSource::Glsl #3559
Labels
area: api
Issues related to API surface
help required
We need community help to make this happen.
type: enhancement
New feature or request
Is your feature request related to a problem? Please describe.
I recently removed
shaderc
from my game's engine and started relying on naga to compile glsl in runtime (for both hot-reloading and not). All shaders work great, but the experience of doing this was somewhat sketchy.ShaderSource::Glsl
requires you to provide anaga::ShaderStage
and arustc_hash::FxHashMap
, neither of which is exported fromwgpu
, unless I am mistaken. So I had to add top-level dependencies on these that version-match with what the gfx ecosystem uses.Describe the solution you'd like
I'd like to import these directly from wgpu, something like:
The text was updated successfully, but these errors were encountered: