SnowflakePowered / librashader

RetroArch Shaders for All
Mozilla Public License 2.0
77 stars 7 forks source link

WGPU backend #9

Closed chyyran closed 5 months ago

chyyran commented 1 year ago

Blocking on a GLSL to WGSL shader translator that can lower sampler2D to split texture2D and sampler.

Tint can not do this, and neither can naga at the moment. SPIR-V Cross has precedence for this lowering, but WGSL support has been declared not in scope for that project.

chyyran commented 7 months ago

This might be possible if SPIRV-Cross allows the same lowering pass as in HLSL-out and MSL-out to split combined image samplers. Naga might be able to parse that and emit WGSL...