File tree 3 files changed +4
-20
lines changed 3 files changed +4
-20
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ use std::ops::Drop;
18
18
use structopt:: StructOpt ;
19
19
20
20
fn shader_module ( ) -> & ' static [ u8 ] {
21
- & include_bytes ! ( concat!( env!( "OUT_DIR" ) , "/spirv/ sky_shader.spv" ) ) [ ..]
21
+ & include_bytes ! ( concat!( env!( "OUT_DIR" ) , "/sky_shader.spv" ) ) [ ..]
22
22
}
23
23
24
24
// Simple offset_of macro akin to C++ offsetof
Original file line number Diff line number Diff line change @@ -21,13 +21,13 @@ pub struct ShaderConstants {
21
21
fn shader_module ( shader : RustGPUShader ) -> wgpu:: ShaderModuleSource < ' static > {
22
22
match shader {
23
23
RustGPUShader :: Compute => {
24
- wgpu:: include_spirv!( concat!( env!( "OUT_DIR" ) , "/spirv/ compute_shader.spv" ) )
24
+ wgpu:: include_spirv!( concat!( env!( "OUT_DIR" ) , "/compute_shader.spv" ) )
25
25
}
26
26
RustGPUShader :: Simplest => {
27
- wgpu:: include_spirv!( concat!( env!( "OUT_DIR" ) , "/spirv/ simplest_shader.spv" ) )
27
+ wgpu:: include_spirv!( concat!( env!( "OUT_DIR" ) , "/simplest_shader.spv" ) )
28
28
}
29
29
RustGPUShader :: Sky => {
30
- wgpu:: include_spirv!( concat!( env!( "OUT_DIR" ) , "/spirv/ sky_shader.spv" ) )
30
+ wgpu:: include_spirv!( concat!( env!( "OUT_DIR" ) , "/sky_shader.spv" ) )
31
31
}
32
32
}
33
33
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments