File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
examples/runners/wgpu/src Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -197,11 +197,16 @@ fn maybe_watch(
197
197
}
198
198
#[ cfg( any( target_os = "android" , target_arch = "wasm32" ) ) ]
199
199
{
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
+ }
202
204
RustGPUShader :: Sky => wgpu:: include_spirv_raw!( env!( "sky_shader.spv" ) ) ,
203
205
RustGPUShader :: Compute => wgpu:: include_spirv_raw!( env!( "compute_shader.spv" ) ) ,
204
206
RustGPUShader :: Mouse => wgpu:: include_spirv_raw!( env!( "mouse_shader.spv" ) ) ,
207
+ } ;
208
+ CompiledShaderModules {
209
+ named_spv_modules : vec ! [ ( None , module) ] ,
205
210
}
206
211
}
207
212
}
You can’t perform that action at this time.
0 commit comments