File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
examples/runners/wgpu/src Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -210,18 +210,14 @@ fn maybe_watch(
210210 {
211211 let module = match options. shader {
212212 RustGPUShader :: Simplest => {
213- wgpu:: include_spirv_raw !( env!( "simplest_shader.spv" ) )
213+ wgpu:: include_spirv !( env!( "simplest_shader.spv" ) )
214214 }
215- RustGPUShader :: Sky => wgpu:: include_spirv_raw!( env!( "sky_shader.spv" ) ) ,
216- RustGPUShader :: Compute => wgpu:: include_spirv_raw!( env!( "compute_shader.spv" ) ) ,
217- RustGPUShader :: Mouse => wgpu:: include_spirv_raw!( env!( "mouse_shader.spv" ) ) ,
218- } ;
219- let spirv = match module {
220- wgpu:: ShaderModuleDescriptorPassthrough :: SpirV ( spirv) => spirv,
221- _ => panic ! ( "not spirv" ) ,
215+ RustGPUShader :: Sky => wgpu:: include_spirv!( env!( "sky_shader.spv" ) ) ,
216+ RustGPUShader :: Compute => wgpu:: include_spirv!( env!( "compute_shader.spv" ) ) ,
217+ RustGPUShader :: Mouse => wgpu:: include_spirv!( env!( "mouse_shader.spv" ) ) ,
222218 } ;
223219 CompiledShaderModules {
224- named_spv_modules : vec ! [ ( None , spirv ) ] ,
220+ named_spv_modules : vec ! [ ( None , module ) ] ,
225221 }
226222 }
227223}
You can’t perform that action at this time.
0 commit comments