This repository was archived by the owner on Oct 31, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
examples/runners/wgpu/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -197,11 +197,16 @@ fn maybe_watch(
197197 }
198198 #[ cfg( any( target_os = "android" , target_arch = "wasm32" ) ) ]
199199 {
200- match shader {
201- RustGPUShader :: Simplest => wgpu:: include_spirv_raw!( env!( "simplest_shader.spv" ) ) ,
200+ let module = match options. shader {
201+ RustGPUShader :: Simplest => {
202+ wgpu:: include_spirv_raw!( env!( "simplest_shader.spv" ) )
203+ }
202204 RustGPUShader :: Sky => wgpu:: include_spirv_raw!( env!( "sky_shader.spv" ) ) ,
203205 RustGPUShader :: Compute => wgpu:: include_spirv_raw!( env!( "compute_shader.spv" ) ) ,
204206 RustGPUShader :: Mouse => wgpu:: include_spirv_raw!( env!( "mouse_shader.spv" ) ) ,
207+ } ;
208+ CompiledShaderModules {
209+ named_spv_modules : vec ! [ ( None , module) ] ,
205210 }
206211 }
207212}
You can’t perform that action at this time.
0 commit comments