Skip to content

Commit

Permalink
Merge pull request #19 from zkmopro/shaders-pipeline-fix
Browse files Browse the repository at this point in the history
Slightly fixed shaders building pipeline
  • Loading branch information
yaroslavyaroslav authored Dec 16, 2024
2 parents 57be255 + 23f7dcb commit a553c49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
1 change: 1 addition & 0 deletions mopro-msm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ default = ["macos"]

macos = []
ios = []
profiling-release = []

[dependencies]
## Shared dependencies
Expand Down
11 changes: 2 additions & 9 deletions mopro-msm/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,12 @@ fn compile_shaders() {
get_sdk(),
"metal",
"-c",
"-frecord-sources",
shader_path.to_str().unwrap(),
"-o",
air_output.to_str().unwrap(),
];

if std::env::var("PROFILE")
.map(|profile| profile == "release")
.unwrap_or(false)
{
if cfg!(feature = "profiling-release") {
args.push("-frecord-sources");
}

Expand Down Expand Up @@ -62,10 +58,7 @@ fn compile_shaders() {
metallib_output.to_str().unwrap(),
];

if std::env::var("PROFILE")
.map(|profile| profile == "release")
.unwrap_or(false)
{
if cfg!(feature = "profiling-release") {
metallib_args.push("-frecord-sources");
}

Expand Down

0 comments on commit a553c49

Please sign in to comment.