File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
shader-crate-template/src Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -17,3 +17,6 @@ test_output
17
17
cmy_triangle_renderer.svg
18
18
.aider *
19
19
flamegraph.svg
20
+
21
+ # Compiled shader assets from running tests
22
+ crates /shader-crate-template /shaders
Original file line number Diff line number Diff line change @@ -207,11 +207,17 @@ mod test {
207
207
& format ! ( "{}" , output_dir. display( ) ) ,
208
208
] ;
209
209
if let Cli {
210
- command : Command :: Build ( build) ,
210
+ command : Command :: Build ( mut build) ,
211
211
} = Cli :: parse_from ( args)
212
212
{
213
213
assert_eq ! ( shader_crate, build. shader_crate) ;
214
214
assert_eq ! ( output_dir, build. output_dir) ;
215
+
216
+ // TODO:
217
+ // What's the best way to reset caches for this? For example we could add a
218
+ // `--force-spirv-cli-rebuild`, but that would slow down each test. But without
219
+ // something like that we might not be getting actual idempotent tests.
220
+ build. run ( ) ;
215
221
} else {
216
222
panic ! ( "was not a build command" ) ;
217
223
}
Original file line number Diff line number Diff line change 1
1
//! Shader entry points.
2
2
//!
3
- //! Contains an example vertex shader, fragment shader and one example compute
4
- //! shader.
3
+ //! Contains an example vertex shader, fragment shader.
5
4
#![ no_std]
6
5
use glam:: { Vec2 , Vec4 } ;
7
6
use spirv_std:: spirv;
You can’t perform that action at this time.
0 commit comments