minor fixes

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