minor fixes
This commit is contained in:
@@ -4,4 +4,4 @@ A realtime renderer for implicit surfaces that JIT compiles the bytecode represe
|
|||||||
|
|
||||||
## Building
|
## Building
|
||||||
|
|
||||||
`python assemble_trace.py && cargo build --release`
|
`python3 assemble_trace.py && cargo build --release`
|
||||||
|
|||||||
+1
-1
@@ -22,7 +22,7 @@ fn main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Command::new("python")
|
Command::new("python3")
|
||||||
.arg("assemble_trace.py")
|
.arg("assemble_trace.py")
|
||||||
.status()
|
.status()
|
||||||
.expect("Failed to assemble header shaders");
|
.expect("Failed to assemble header shaders");
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#![feature(portable_simd)]
|
#![feature(portable_simd)]
|
||||||
#![feature(mpmc_channel)]
|
#![feature(mpmc_channel)]
|
||||||
|
|
||||||
const DUMP_SPV_TO_FILE: bool = true;
|
const DUMP_SPV_TO_FILE: bool = false;
|
||||||
const PIPELINE_CACHING: bool = false;
|
const PIPELINE_CACHING: bool = false;
|
||||||
const IGNORE_STENCIL: bool = true;
|
const IGNORE_STENCIL: bool = true;
|
||||||
|
|
||||||
@@ -9,8 +9,8 @@ const DEFAULT_SUBDIVISION: u32 = 16;
|
|||||||
const MAXIMUM_SUBDIVISION: u32 = 64;
|
const MAXIMUM_SUBDIVISION: u32 = 64;
|
||||||
const MINUMUM_SUBDIVISION: u32 = 8;
|
const MINUMUM_SUBDIVISION: u32 = 8;
|
||||||
|
|
||||||
const RUN_STANDARD_PIPELINE: bool = true;
|
const RUN_STANDARD_PIPELINE: bool = false;
|
||||||
const RUN_RT_PIPELINE: bool = false;
|
const RUN_RT_PIPELINE: bool = true;
|
||||||
|
|
||||||
use std::{
|
use std::{
|
||||||
error::Error,
|
error::Error,
|
||||||
@@ -1738,7 +1738,7 @@ impl App {
|
|||||||
if self.glsl_changed.load(std::sync::atomic::Ordering::Relaxed) {
|
if self.glsl_changed.load(std::sync::atomic::Ordering::Relaxed) {
|
||||||
self.glsl_changed
|
self.glsl_changed
|
||||||
.store(false, std::sync::atomic::Ordering::Relaxed);
|
.store(false, std::sync::atomic::Ordering::Relaxed);
|
||||||
if std::process::Command::new("python")
|
if std::process::Command::new("python3")
|
||||||
.arg("assemble_trace.py")
|
.arg("assemble_trace.py")
|
||||||
.status()
|
.status()
|
||||||
.is_err()
|
.is_err()
|
||||||
|
|||||||
@@ -7,3 +7,4 @@ pub mod types;
|
|||||||
pub mod vm;
|
pub mod vm;
|
||||||
|
|
||||||
const BYTECODE_IMITATES_GLSL: bool = false;
|
const BYTECODE_IMITATES_GLSL: bool = false;
|
||||||
|
const DUMP_SPV_DIS_TO_FILE: bool = false;
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ use core::f32;
|
|||||||
use rspirv::{binary::Disassemble, dr::Module, spirv};
|
use rspirv::{binary::Disassemble, dr::Module, spirv};
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
|
DUMP_SPV_DIS_TO_FILE,
|
||||||
instruction_set::InstructionSet,
|
instruction_set::InstructionSet,
|
||||||
spirv_compilers::{
|
spirv_compilers::{
|
||||||
SpirVTypes,
|
SpirVTypes,
|
||||||
@@ -521,6 +522,7 @@ impl SSATape {
|
|||||||
|
|
||||||
let module = b.module();
|
let module = b.module();
|
||||||
|
|
||||||
|
if DUMP_SPV_DIS_TO_FILE {
|
||||||
std::fs::write(
|
std::fs::write(
|
||||||
format!(
|
format!(
|
||||||
"{}.spv-dis",
|
"{}.spv-dis",
|
||||||
@@ -530,6 +532,7 @@ impl SSATape {
|
|||||||
module.disassemble(),
|
module.disassemble(),
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
}
|
||||||
|
|
||||||
module
|
module
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user