Skip to content

Instantly share code, notes, and snippets.

@apriori
Created August 25, 2021 18:28
Show Gist options
  • Save apriori/d19a9a85de1e4dd2779a95a8d9706a9b to your computer and use it in GitHub Desktop.
Save apriori/d19a9a85de1e4dd2779a95a8d9706a9b to your computer and use it in GitHub Desktop.
[workspace]
members = [
"gpu_pmt",
"gpu_pmt_test",
"native",
"shader/shader_common",
"shader/pmt_shader",
"shader/fft_shader",
"scanner_calibration_data",
"shader/pointcloud_render_shader",
"shader/point_shader",
"shader/registration_shader",
"registration_hgmm",
"wgpu_utils",
"viewer",
"shader_gen_ext"
]
resolver = "2"
[patch.crates-io]
spirv-builder = { path = "../rust-gpu/crates/spirv-builder" }
spirv-std = { path = "../rust-gpu/crates/spirv-std"}
spirv-std-macros = { path = "../rust-gpu/crates/spirv-std/macros" }
#rustc_codegen_spirv = {path = "../rust-gpu/crates/rustc_codegen_spirv"}
[patch.'https://github.com/EmbarkStudios/rust-gpu']
spirv-builder = { path = "../rust-gpu/crates/spirv-builder" }
spirv-std = { path = "../rust-gpu/crates/spirv-std"}
spirv-std-macros = { path = "../rust-gpu/crates/spirv-std/macros" }
#rustc_codegen_spirv = {path = "../rust-gpu/crates/rustc_codegen_spirv"}
# Enable incremental by default in release mode.
[profile.release]
#opt-level = 3
#incremental = true
# HACK(eddyb) this is the default but without explicitly specifying it, Cargo
# will treat the identical settings in `[profile.release.build-override]` below
# as different sets of `rustc` flags and will not reuse artifacts between them.
codegen-units = 16
# Compile build-dependencies in release mode with the same settings
# as regular dependencies (including the incremental enabled above).
[profile.release.build-override]
opt-level = 3
#incremental = true
codegen-units = 16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment