enable O3
optimization for fxc
This commit is contained in:
parent
1b0a0aa58e
commit
d208f75f46
1 changed files with 1 additions and 1 deletions
|
@ -293,7 +293,6 @@ mod windows {
|
||||||
/// You can set the `GPUI_FXC_PATH` environment variable to specify the path to the fxc.exe compiler.
|
/// You can set the `GPUI_FXC_PATH` environment variable to specify the path to the fxc.exe compiler.
|
||||||
fn compile_shaders() {
|
fn compile_shaders() {
|
||||||
use std::fs;
|
use std::fs;
|
||||||
use std::process::{self, Command};
|
|
||||||
|
|
||||||
let shader_path = PathBuf::from(std::env::var("CARGO_MANIFEST_DIR").unwrap())
|
let shader_path = PathBuf::from(std::env::var("CARGO_MANIFEST_DIR").unwrap())
|
||||||
.join("src/platform/windows/shaders.hlsl");
|
.join("src/platform/windows/shaders.hlsl");
|
||||||
|
@ -413,6 +412,7 @@ mod windows {
|
||||||
output_path,
|
output_path,
|
||||||
"/Vn",
|
"/Vn",
|
||||||
var_name,
|
var_name,
|
||||||
|
"/O3",
|
||||||
shader_path,
|
shader_path,
|
||||||
])
|
])
|
||||||
.output();
|
.output();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue