Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
polymonster committed Dec 8, 2024
1 parent 513fdc4 commit fc70223
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.jsn
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/gfx/mtl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ impl super::CmdBuf<Device> 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<T: Sized>(&self, slot: u32, num_values: u32, dest_offset: u32, data: &[T]) {
Expand Down

0 comments on commit fc70223

Please sign in to comment.