-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metal building pipeline enhancement #14
Conversation
PR is converted to draft due to iOS pipeline haven't been implemented yet. |
902d9dd
to
0a68ac4
Compare
@moven0831 I haven't removed all.metal file yet, to avoid unnecessary conflicts with your pending PR #13 But it's the matter of changing a single function in the build current pipeline, so it won't take any long to do it afterwards. PR is ready for review |
1. Metal shaders for macOS compile with `build.rs` 2. `metallib` stored within std out dir rather than in the git repo under hardcoded path. 3. Prebuilt library and script deleted. 4. `build.rs` handles conditional debug symbols injection into metal lib by setting `[profile.release]\n debug = true` in `Cargo.toml`
0a68ac4
to
eeaf13a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! and also this is compatible with PR #13 since the main purpose of it is to provide a new metal ec backend instead of the overall metal msm
// List your Metal shaders here. | ||
let shaders = vec!["all.metal"]; | ||
|
||
let shaders_to_check = vec!["all.metal", "msm.h.metal"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will replace the all.metal
with refactored shaders to be compiled
build.rs
metallib
stored within std out dir rather than in the git repo under hardcoded path.build.rs
handles conditional debug symbols injection into metal lib by setting[profile.release]\n debug = true
inCargo.toml