You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that would be fine from the API point of view. Now that there is a WGSL backend, we can generate the shader for the web target internally.
However, it may be less usable than it seems: naga modules are not clone-able. So if @Frizi wants to try it out and report back, we can use this input to figure out if this can be reasonably exposed.
Is your feature request related to a problem? Please describe.
Use
naga::Module
as aShaderSource
for non web targets like spv.Describe the solution you'd like
Accept
naga::Module
in ShaderSource.wgpu-core
already accept it.wgpu/wgpu/src/lib.rs
Lines 732 to 745 in 0c76819
Describe alternatives you've considered
Use
naga
to producewgsl
orspv
from IR in user projects.The text was updated successfully, but these errors were encountered: