Compare commits
6 Commits
f627b25afa
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 5603f19c22 | |||
| 35784514d6 | |||
| 24a40adcad | |||
| 0a17b24451 | |||
| 3652de9fd1 | |||
| bf82670f9e |
@@ -1,7 +1,6 @@
|
||||
name: "CI"
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
@@ -32,4 +31,4 @@ jobs:
|
||||
- uses: actions/checkout@v6
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
- run: cargo install --git https://github.com/rust-gpu/rust-gpu cargo-gpu
|
||||
- run: cargo gpu check -p enkou-shaders
|
||||
- run: cargo gpu check --auto-install-rust-toolchain -p enkou-shaders
|
||||
|
||||
@@ -9,11 +9,9 @@ pub fn main() -> anyhow::Result<()> {
|
||||
.copied()
|
||||
.collect::<PathBuf>();
|
||||
|
||||
let mut install = Install::from_shader_crate(crate_path.clone());
|
||||
install.build_script = true;
|
||||
install.auto_install_rust_toolchain = true;
|
||||
let install = install.run()?;
|
||||
|
||||
let install = Install::from_shader_crate(crate_path.clone())
|
||||
.within_build_script()
|
||||
.run()?;
|
||||
let mut builder = install.to_spirv_builder(crate_path, "spirv-unknown-vulkan1.3");
|
||||
builder.build_script.defaults = true;
|
||||
builder.shader_panic_strategy = ShaderPanicStrategy::SilentExit;
|
||||
|
||||
Reference in New Issue
Block a user