Skip to content

Commit 31257ef

Browse files
committed
Move spirv
1 parent 99437c0 commit 31257ef

File tree

3 files changed

+4
-20
lines changed

3 files changed

+4
-20
lines changed

examples/runners/ash/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use std::ops::Drop;
1818
use structopt::StructOpt;
1919

2020
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"))[..]
2222
}
2323

2424
// Simple offset_of macro akin to C++ offsetof

examples/runners/wgpu/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ pub struct ShaderConstants {
2121
fn shader_module(shader: RustGPUShader) -> wgpu::ShaderModuleSource<'static> {
2222
match shader {
2323
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"))
2525
}
2626
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"))
2828
}
2929
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"))
3131
}
3232
}
3333
}

foo.rs

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)