From fc7022319888845e85da36230f6cfb137e9fa87f Mon Sep 17 00:00:00 2001 From: polymonster Date: Sun, 8 Dec 2024 11:41:34 +0000 Subject: [PATCH] wip --- config.jsn | 1 + src/gfx/mtl.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/config.jsn b/config.jsn index 17b9708..e3409b1 100644 --- a/config.jsn +++ b/config.jsn @@ -150,6 +150,7 @@ "-metal_version 2.3" "-metal_sdk macosx" "-discrete_binding 0" + "-discrete_binding 1" "-i ${src_data_dir}/shaders/" "-o ${data_dir}/shaders" "-t ${temp_dir}/shaders" diff --git a/src/gfx/mtl.rs b/src/gfx/mtl.rs index a79ba28..2a1b443 100644 --- a/src/gfx/mtl.rs +++ b/src/gfx/mtl.rs @@ -375,7 +375,7 @@ impl super::CmdBuf for CmdBuf { .expect("hotline_rs::gfx::metal expected a call to begin render pass before using render commands") // .set_fragment_bytes(slot as u64 + 2, num_values as u64 * 4, data.as_ptr() as _); // .set_vertex_bytes(slot as u64 + 2, num_values as u64 * 4, data.as_ptr() as _); - .set_vertex_bytes(0, num_values as u64 * 4, data.as_ptr() as _); + .set_vertex_bytes(1, num_values as u64 * 4, data.as_ptr() as _); } fn push_compute_constants(&self, slot: u32, num_values: u32, dest_offset: u32, data: &[T]) {