Skip to content

armgit / gecko

Public Imported from GitHub
0

A GameCube/Wii emulator and debugger written in Rust.

wiimote camera works

Laylea4f9bd94424a
diff --git a/crates/gecko/src/hollywood/ipc.rs b/crates/gecko/src/hollywood/ipc.rs
index 802ed7c..228f228 100644
--- a/crates/gecko/src/hollywood/ipc.rs
+++ b/crates/gecko/src/hollywood/ipc.rs
@@ -98,6 +98,10 @@ pub trait IosDevice: Send {
fn set_nunchuk(&mut self, _buttons: u8, _stick_x: u8, _stick_y: u8) -> bool {
false
}
+
+ fn set_ir_pointer(&mut self, _pointer: Option<(u16, u16)>) -> bool {
+ false
+ }
}
pub struct Ipc {
diff --git a/crates/gecko/src/hollywood/ipc/usb.rs b/crates/gecko/src/hollywood/ipc/usb.rs
index 4c92428..46aca19 100644
--- a/crates/gecko/src/hollywood/ipc/usb.rs
+++ b/crates/gecko/src/hollywood/ipc/usb.rs
@@ -8,7 +8,8 @@ pub(crate) use bluetooth::{WIIMOTE_ADDR, WIIMOTE_NAME};
use std::collections::VecDeque;
pub use wiimote::{
BTN_A, BTN_B, BTN_DOWN, BTN_HOME, BTN_LEFT, BTN_MINUS, BTN_ONE, BTN_PLUS, BTN_RIGHT, BTN_TWO, BTN_UP,
- NUNCHUK_BTN_C, NUNCHUK_BTN_Z, NUNCHUK_STICK_CENTER, NUNCHUK_STICK_MAX, NUNCHUK_STICK_MIN,
+ IR_CAMERA_HEIGHT, IR_CAMERA_WIDTH, NUNCHUK_BTN_C, NUNCHUK_BTN_Z, NUNCHUK_STICK_CENTER, NUNCHUK_STICK_MAX,
+ NUNCHUK_STICK_MIN,
};
const USB_CTRL: u32 = 0;
@@ -65,6 +66,10 @@ impl IosDevice for Bluetooth {
fn set_nunchuk(&mut self, buttons: u8, stick_x: u8, stick_y: u8) -> bool {
Bluetooth::set_nunchuk(self, buttons, stick_x, stick_y)
}
+
+ fn set_ir_pointer(&mut self, pointer: Option<(u16, u16)>) -> bool {
+ Bluetooth::set_ir_pointer(self, pointer)
+ }
}
impl Bluetooth {
@@ -194,6 +199,23 @@ impl Bluetooth {
changed
}
+
+ fn set_ir_pointer(&mut self, pointer: Option<(u16, u16)>) -> bool {
+ let changed = self.wiimote.set_ir_pointer(pointer);
+
+ if changed {
+ tracing::debug!(pointer = ?pointer, "IR pointer state changed");
+ }
+
+ if self.host_hid_interrupt_cid.is_none() {
+ return changed;
+ }
+
+ let report = self.wiimote.make_input_report();
+ self.queue_hid_input_report(report);
+
+ changed
+ }
}
#[inline(always)]
diff --git a/crates/gecko/src/hollywood/ipc/usb/wiimote.rs b/crates/gecko/src/hollywood/ipc/usb/wiimote.rs
index 16f1ded..d780bb8 100644
--- a/crates/gecko/src/hollywood/ipc/usb/wiimote.rs
+++ b/crates/gecko/src/hollywood/ipc/usb/wiimote.rs
@@ -19,6 +19,9 @@ pub const NUNCHUK_STICK_MIN: u8 = 0x00;
pub const NUNCHUK_STICK_CENTER: u8 = 0x80;
pub const NUNCHUK_STICK_MAX: u8 = 0xFF;
+pub const IR_CAMERA_WIDTH: u16 = 1024;
+pub const IR_CAMERA_HEIGHT: u16 = 768;
+
const HID_PREFIX_INPUT: u8 = 0xA1;
const HID_PREFIX_OUTPUT: u8 = 0xA2;
@@ -140,6 +143,7 @@ pub(super) struct WiimoteState {
nunchuk_key_buf: [u8; NUNCHUK_KEY_LEN],
nunchuk_key_valid: u16,
nunchuk_cipher: Cipher,
+ ir_pointer: Option<(u16, u16)>,
}
impl Default for WiimoteState {
@@ -168,6 +172,7 @@ impl Default for WiimoteState {
nunchuk_key_buf: [0; NUNCHUK_KEY_LEN],
nunchuk_key_valid: 0,
nunchuk_cipher: Cipher::IDENTITY,
+ ir_pointer: None,
}
}
}
@@ -188,6 +193,12 @@ impl WiimoteState {
changed
}
+ pub(super) fn set_ir_pointer(&mut self, pointer: Option<(u16, u16)>) -> bool {
+ let changed = self.ir_pointer != pointer;
+ self.ir_pointer = pointer;
+ changed
+ }
+
fn button_bytes(&self) -> [u8; 2] {
self.buttons.to_be_bytes()
}
@@ -195,8 +206,6 @@ impl WiimoteState {
pub(super) fn make_input_report(&self) -> Vec<u8> {
let [bb0, bb1] = self.button_bytes();
let accel = [0x80u8, 0x80, 0xB3]; // X=0G, Y=0G, Z=+1G (gravity)
- let ir_basic = [0xFF; 10];
- let ir_extended = [0xFF; 12];
let mode = self.report_mode;
let mut r = vec![HID_PREFIX_INPUT, mode as u8, bb0, bb1];
@@ -206,7 +215,7 @@ impl WiimoteState {
ReportMode::CoreExt8 => self.append_nunchuk_ext_padded(&mut r, 8),
ReportMode::CoreAccelIrExt => {
r.extend_from_slice(&accel);
- r.extend_from_slice(&ir_extended);
+ r.extend_from_slice(&self::pack_ir_extended(&self.ir_objects()));
}
ReportMode::CoreExt19 => self.append_nunchuk_ext_padded(&mut r, 19),
ReportMode::CoreAccelExt16 => {
@@ -214,12 +223,12 @@ impl WiimoteState {
self.append_nunchuk_ext_padded(&mut r, 16);
}
ReportMode::CoreIrBasicExt9 => {
- r.extend_from_slice(&ir_basic);
+ r.extend_from_slice(&self::pack_ir_basic(&self.ir_objects()));
self.append_nunchuk_ext_padded(&mut r, 9);
}
ReportMode::CoreAccelIrBasicExt6 => {
r.extend_from_slice(&accel);
- r.extend_from_slice(&ir_basic);
+ r.extend_from_slice(&self::pack_ir_basic(&self.ir_objects()));
r.extend_from_slice(&self.nunchuk_extension_bytes());
}
}
@@ -255,6 +264,19 @@ impl WiimoteState {
out.resize(target, 0xFF);
}
+ fn ir_objects(&self) -> [Option<(u16, u16)>; 4] {
+ const SENSOR_BAR_HALF: u16 = 50;
+
+ let Some((cx, cy)) = self.ir_pointer else {
+ return [None; 4];
+ };
+
+ let left = cx.saturating_sub(SENSOR_BAR_HALF);
+ let right = (cx + SENSOR_BAR_HALF).min(IR_CAMERA_WIDTH - 1);
+
+ [Some((left, cy)), Some((right, cy)), None, None]
+ }
+
pub(super) fn handle_output_report(&mut self, packet: &[u8]) -> Vec<Vec<u8>> {
if packet.len() < 2 {
return Vec::new();
@@ -504,6 +526,51 @@ fn compute_calibration_checksum(data: &[u8]) -> (u8, u8) {
(sum.wrapping_add(0x55), sum.wrapping_add(0xAA))
}
+fn pack_ir_basic(objects: &[Option<(u16, u16)>; 4]) -> [u8; 10] {
+ let mut out = [0xFF; 10];
+
+ self::pack_ir_basic_pair(&mut out[0..5], objects[0], objects[1]);
+ self::pack_ir_basic_pair(&mut out[5..10], objects[2], objects[3]);
+
+ out
+}
+
+fn split_ir_coords(x: u16, y: u16) -> (u8, u8, u8, u8) {
+ (x as u8, ((x >> 8) & 0x03) as u8, y as u8, ((y >> 8) & 0x03) as u8)
+}
+
+fn pack_ir_basic_pair(out: &mut [u8], p1: Option<(u16, u16)>, p2: Option<(u16, u16)>) {
+ if let Some((x, y)) = p1 {
+ let (x_lo, x_hi, y_lo, y_hi) = self::split_ir_coords(x, y);
+ out[0] = x_lo;
+ out[1] = y_lo;
+ out[2] = (out[2] & 0xF0) | (y_hi << 2) | x_hi;
+ }
+
+ if let Some((x, y)) = p2 {
+ let (x_lo, x_hi, y_lo, y_hi) = self::split_ir_coords(x, y);
+ out[3] = x_lo;
+ out[4] = y_lo;
+ out[2] = (out[2] & 0x0F) | (y_hi << 6) | (x_hi << 4);
+ }
+}
+
+fn pack_ir_extended(objects: &[Option<(u16, u16)>; 4]) -> [u8; 12] {
+ let mut out = [0xFF; 12];
+
+ for (i, slot) in objects.iter().enumerate() {
+ if let Some((x, y)) = *slot {
+ let base = i * 3;
+ let (x_lo, x_hi, y_lo, y_hi) = self::split_ir_coords(x, y);
+ out[base] = x_lo;
+ out[base + 1] = y_lo;
+ out[base + 2] = (3 << 4) | (y_hi << 2) | x_hi;
+ }
+ }
+
+ out
+}
+
#[inline(always)]
fn decode_mem_address(body: &[u8]) -> u32 {
((body[1] as u32) << 16) | ((body[2] as u32) << 8) | (body[3] as u32)
diff --git a/crates/gecko/src/input.rs b/crates/gecko/src/input.rs
index 7e581c6..fad698e 100644
--- a/crates/gecko/src/input.rs
+++ b/crates/gecko/src/input.rs
@@ -10,6 +10,7 @@ pub enum HostInput {
nunchuk_buttons: u8,
nunchuk_stick_x: u8,
nunchuk_stick_y: u8,
+ ir_pointer: Option<(u16, u16)>,
},
}
@@ -27,6 +28,7 @@ impl HostInput {
nunchuk_buttons: 0,
nunchuk_stick_x: usb::NUNCHUK_STICK_CENTER,
nunchuk_stick_y: usb::NUNCHUK_STICK_CENTER,
+ ir_pointer: None,
}
}
diff --git a/crates/gecko/src/starlet.rs b/crates/gecko/src/starlet.rs
index 9f9a5dc..b2c9711 100644
--- a/crates/gecko/src/starlet.rs
+++ b/crates/gecko/src/starlet.rs
@@ -117,6 +117,12 @@ impl Starlet {
.is_some_and(|dev| dev.set_nunchuk(buttons, stick_x, stick_y))
}
+ pub fn set_ir_pointer(&mut self, pointer: Option<(u16, u16)>) -> bool {
+ self.devices
+ .get_mut("/dev/usb/oh1/57e/305")
+ .is_some_and(|dev| dev.set_ir_pointer(pointer))
+ }
+
/// Drop an fd. Calls `close` on the underlying device first; for owned
/// fds the device is dropped after close.
pub fn close_fd(&mut self, fd: i32, ctx: &mut DeviceContext<'_>) -> i32 {
diff --git a/crates/gecko/src/system.rs b/crates/gecko/src/system.rs
index 7ddd242..891973b 100644
--- a/crates/gecko/src/system.rs
+++ b/crates/gecko/src/system.rs
@@ -562,10 +562,12 @@ impl<const SYSTEM: SystemId> System<SYSTEM> {
nunchuk_buttons,
nunchuk_stick_x,
nunchuk_stick_y,
+ ir_pointer,
} if SYSTEM == WII => {
self.starlet.set_wiimote_buttons(*wiimote_buttons);
self.starlet
.set_nunchuk(*nunchuk_buttons, *nunchuk_stick_x, *nunchuk_stick_y);
+ self.starlet.set_ir_pointer(*ir_pointer);
}
_ => unreachable!("invalid host input for system"),
}
diff --git a/crates/mcp/src/server.rs b/crates/mcp/src/server.rs
index f5ffe94..51dafdc 100644
--- a/crates/mcp/src/server.rs
+++ b/crates/mcp/src/server.rs
@@ -120,6 +120,12 @@ pub struct SetWiimoteArgs {
pub nunchuk_stick_x: Option<u8>,
#[schemars(description = "Nunchuk stick Y (0..=255, center=0x80, full-down=0x00, full-up=0xFF)")]
pub nunchuk_stick_y: Option<u8>,
+ #[schemars(
+ description = "IR pointer X in camera space (0..=1023). Both ir_x and ir_y must be set to enable the pointer; omitting either reports it as not visible."
+ )]
+ pub ir_x: Option<u16>,
+ #[schemars(description = "IR pointer Y in camera space (0..=767).")]
+ pub ir_y: Option<u16>,
}
#[derive(Debug, Serialize)]
@@ -583,6 +589,7 @@ impl McpServer {
nunchuk_stick_y: args
.nunchuk_stick_y
.unwrap_or(gecko::hollywood::ipc::usb::NUNCHUK_STICK_CENTER),
+ ir_pointer: args.ir_x.zip(args.ir_y),
};
let mut s = self.shared.state.lock().unwrap();
s.backend.as_mut().unwrap().apply_host_input(&input);
diff --git a/crates/tinyapp/src/app.rs b/crates/tinyapp/src/app.rs
index b6b8dfa..63ad786 100644
--- a/crates/tinyapp/src/app.rs
+++ b/crates/tinyapp/src/app.rs
@@ -434,6 +434,7 @@ impl ApplicationHandler<crate::UserEvent> for App {
nunchuk_buttons,
nunchuk_stick_x,
nunchuk_stick_y,
+ ir_pointer: _,
} => {
crate::update_wiimote_keys(wiimote_buttons, key, pressed);
crate::update_nunchuk_keys(nunchuk_buttons, nunchuk_stick_x, nunchuk_stick_y, key, pressed);
@@ -469,6 +470,42 @@ impl ApplicationHandler<crate::UserEvent> for App {
}
}
}
+ WindowEvent::CursorMoved { position, .. } => {
+ let Some(window) = &self.window else {
+ return;
+ };
+
+ let size = window.inner_size();
+ if size.width == 0 || size.height == 0 {
+ return;
+ }
+
+ const POINTER_SCALE_X: f64 = 0.44;
+ const POINTER_SCALE_Y: f64 = 0.66;
+ const POINTER_Y_OFFSET: f64 = 120.0;
+
+ let aim_x = (position.x / size.width as f64).clamp(0.0, 1.0);
+ let aim_y = (position.y / size.height as f64).clamp(0.0, 1.0);
+ let span_x = usb::IR_CAMERA_WIDTH as f64 * POINTER_SCALE_X;
+ let span_y = usb::IR_CAMERA_HEIGHT as f64 * POINTER_SCALE_Y;
+ let base_x = (usb::IR_CAMERA_WIDTH as f64 - span_x) / 2.0;
+ let base_y = (usb::IR_CAMERA_HEIGHT as f64 - span_y) / 2.0 + POINTER_Y_OFFSET;
+ let ir_x = (base_x + (1.0 - aim_x) * span_x) as u16;
+ let ir_y = (base_y + aim_y * span_y) as u16;
+
+ let mut input = self.input.lock().unwrap();
+ if let HostInput::Wii { ir_pointer, .. } = &mut *input
+ && *ir_pointer != Some((ir_x, ir_y))
+ {
+ *ir_pointer = Some((ir_x, ir_y));
+ }
+ }
+ WindowEvent::CursorLeft { .. } => {
+ let mut input = self.input.lock().unwrap();
+ if let HostInput::Wii { ir_pointer, .. } = &mut *input {
+ *ir_pointer = None;
+ }
+ }
WindowEvent::RedrawRequested => {
let waiting = self.waiting();
if let (Some(state), Some(window)) = (&mut self.state, &self.window) {
diff --git a/crates/web/Cargo.lock b/crates/web/Cargo.lock
index c045091..5691b39 100644
--- a/crates/web/Cargo.lock
+++ b/crates/web/Cargo.lock
@@ -109,6 +109,18 @@ version = "1.0.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
+[[package]]
+name = "anyhow"
+version = "1.0.102"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
+
+[[package]]
+name = "arbitrary"
+version = "1.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1"
+
[[package]]
name = "arrayref"
version = "0.3.9"
@@ -162,8 +174,8 @@ name = "backend-wgpu"
version = "0.1.0"
dependencies = [
"bytemuck",
+ "chapa",
"crossbeam-channel",
- "encase",
"gecko",
"glam",
"png",
@@ -229,6 +241,9 @@ name = "bumpalo"
version = "3.20.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb"
+dependencies = [
+ "allocator-api2",
+]
[[package]]
name = "bytemuck"
@@ -390,15 +405,6 @@ dependencies = [
"wasm-bindgen",
]
-[[package]]
-name = "const_panic"
-version = "0.2.15"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e262cdaac42494e3ae34c43969f9cdeb7da178bdb4b66fa6a1ea2edb4c8ae652"
-dependencies = [
- "typewit",
-]
-
[[package]]
name = "convert_case"
version = "0.10.0"
@@ -478,6 +484,173 @@ dependencies = [
"libc",
]
+[[package]]
+name = "cranelift-assembler-x64"
+version = "0.131.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f8628cc4ba7f88a9205a7ee42327697abc61195a1e3d92cfae172d6a946e722e"
+dependencies = [
+ "cranelift-assembler-x64-meta",
+]
+
+[[package]]
+name = "cranelift-assembler-x64-meta"
+version = "0.131.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d582754487e6c9a065a91c42ccf1bdd8d5977af33468dac5ae9bec0ce88acb3e"
+dependencies = [
+ "cranelift-srcgen",
+]
+
+[[package]]
+name = "cranelift-bforest"
+version = "0.131.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fb59c81ace12ee7c33074db7903d4d75d1f40b28cd3e8e6f491de57b29129eb9"
+dependencies = [
+ "cranelift-entity",
+ "wasmtime-internal-core",
+]
+
+[[package]]
+name = "cranelift-bitset"
+version = "0.131.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f25c06993a681be9cf3140798a3d4ac5bec955e7444416a2fdc87fda8567285d"
+dependencies = [
+ "wasmtime-internal-core",
+]
+
+[[package]]
+name = "cranelift-codegen"
+version = "0.131.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "27b61f95c5a211918f5d336254a61a488b36a5818de47a868e8c4658dce9cccc"
+dependencies = [
+ "bumpalo",
+ "cranelift-assembler-x64",
+ "cranelift-bforest",
+ "cranelift-bitset",
+ "cranelift-codegen-meta",
+ "cranelift-codegen-shared",
+ "cranelift-control",
+ "cranelift-entity",
+ "cranelift-isle",
+ "gimli",
+ "hashbrown 0.16.1",
+ "libm",
+ "log",
+ "regalloc2",
+ "rustc-hash 2.1.2",
+ "serde",
+ "smallvec",
+ "target-lexicon",
+ "wasmtime-internal-core",
+]
+
+[[package]]
+name = "cranelift-codegen-meta"
+version = "0.131.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b85aa822fce72080d041d7c2cf7c3f5c6ecdea7afae68379ba4ef85269c4fa5"
+dependencies = [
+ "cranelift-assembler-x64-meta",
+ "cranelift-codegen-shared",
+ "cranelift-srcgen",
+ "heck",
+]
+
+[[package]]
+name = "cranelift-codegen-shared"
+version = "0.131.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "833eb9fc89326cd072cc19e96892f09b5692c0dfe17cd4da2858ba30c2cd85c0"
+
+[[package]]
+name = "cranelift-control"
+version = "0.131.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9d005320f487e6e8a3edcc7f2fd4f43fcc9946d1013bf206ea649789ac1617fc"
+dependencies = [
+ "arbitrary",
+]
+
+[[package]]
+name = "cranelift-entity"
+version = "0.131.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e62ef34c6e720f347a79ece043e8584e242d168911da640bac654a33a6aaaf5"
+dependencies = [
+ "cranelift-bitset",
+ "wasmtime-internal-core",
+]
+
+[[package]]
+name = "cranelift-frontend"
+version = "0.131.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dfa2ad00399dd47e7e7e33cb1dc23b0e39ed9dcd01e8f026fc37af91655031b8"
+dependencies = [
+ "cranelift-codegen",
+ "log",
+ "smallvec",
+ "target-lexicon",
+]
+
+[[package]]
+name = "cranelift-isle"
+version = "0.131.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "02c51975ed217b4e8e5a7fd11e9ec83a96104bdff311dddcb505d1d8a9fd7fc6"
+
+[[package]]
+name = "cranelift-jit"
+version = "0.131.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4070d2acc5c976887c10c273d38dd2bebebb472fd1ba65fa17b548adf5f56350"
+dependencies = [
+ "anyhow",
+ "cranelift-codegen",
+ "cranelift-control",
+ "cranelift-entity",
+ "cranelift-module",
+ "cranelift-native",
+ "libc",
+ "log",
+ "region",
+ "target-lexicon",
+ "wasmtime-internal-jit-icache-coherence",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "cranelift-module"
+version = "0.131.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "052a396328dbc7dadc29d1bd27d4aa57d9e9e493ead8ef6e2ab3b75c1bf9644c"
+dependencies = [
+ "anyhow",
+ "cranelift-codegen",
+ "cranelift-control",
+]
+
+[[package]]
+name = "cranelift-native"
+version = "0.131.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f9b1889e00da9729d8f8525f3c12998ded86ea709058ff844ebe00b97548de0e"
+dependencies = [
+ "cranelift-codegen",
+ "libc",
+ "target-lexicon",
+]
+
+[[package]]
+name = "cranelift-srcgen"
+version = "0.131.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d5a8f82fd5124f009f72167e60139245cd3b56cfd4b53050f22110c48c5f4da1"
+
[[package]]
name = "crc32fast"
version = "1.5.0"
@@ -714,37 +887,6 @@ dependencies = [
"log",
]
-[[package]]
-name = "encase"
-version = "0.12.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6e3e0ff2ee0b7aa97428308dd9e1e42369cb22f5fb8dc1c55546637443a60f1e"
-dependencies = [
- "const_panic",
- "encase_derive",
- "thiserror 2.0.18",
-]
-
-[[package]]
-name = "encase_derive"
-version = "0.12.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a4d90c5d7d527c6cb8a3b114efd26a6304d9ab772656e73d8f4e32b1f3d601a2"
-dependencies = [
- "encase_derive_impl",
-]
-
-[[package]]
-name = "encase_derive_impl"
-version = "0.12.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c8bad72d8308f7a382de2391ec978ddd736e0103846b965d7e2a63a75768af30"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
[[package]]
name = "epaint"
version = "0.33.3"
@@ -931,7 +1073,13 @@ dependencies = [
"bytemuck",
"chapa",
"chipi-build",
+ "cranelift-codegen",
+ "cranelift-frontend",
+ "cranelift-jit",
+ "cranelift-module",
+ "cranelift-native",
"crc32fast",
+ "crossbeam-channel",
"disasm",
"glam",
"image",
@@ -976,6 +1124,18 @@ dependencies = [
"wasm-bindgen",
]
+[[package]]
+name = "gimli"
+version = "0.33.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0bf7f043f89559805f8c7cacc432749b2fa0d0a0a9ee46ce47164ed5ba7f126c"
+dependencies = [
+ "fnv",
+ "hashbrown 0.16.1",
+ "indexmap",
+ "stable_deref_trait",
+]
+
[[package]]
name = "gl_generator"
version = "0.14.0"
@@ -994,7 +1154,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f70749695b063ecbf6b62949ccccde2e733ec3ecbbd71d467dca4e5c6c97cca0"
dependencies = [
"bytemuck",
- "encase",
]
[[package]]
@@ -1090,6 +1249,12 @@ version = "0.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4f467dd6dccf739c208452f8014c75c18bb8301b050ad1cfb27153803edb0f51"
+[[package]]
+name = "heck"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
+
[[package]]
name = "hermit-abi"
version = "0.5.2"
@@ -1558,6 +1723,15 @@ dependencies = [
"logos-codegen",
]
+[[package]]
+name = "mach2"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d640282b302c0bb0a2a8e0233ead9035e3bed871f0b7e81fe4a1ec829765db44"
+dependencies = [
+ "libc",
+]
+
[[package]]
name = "malloc_buf"
version = "0.0.6"
@@ -2297,6 +2471,20 @@ dependencies = [
"bitflags 2.11.1",
]
+[[package]]
+name = "regalloc2"
+version = "0.15.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "de2c52737737f8609e94f975dee22854a2d5c125772d4b1cf292120f4d45c186"
+dependencies = [
+ "allocator-api2",
+ "bumpalo",
+ "hashbrown 0.17.0",
+ "log",
+ "rustc-hash 2.1.2",
+ "smallvec",
+]
+
[[package]]
name = "regex"
version = "1.12.3"
@@ -2326,6 +2514,18 @@ version = "0.8.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a"
+[[package]]
+name = "region"
+version = "3.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e6b6ebd13bc009aef9cd476c1310d49ac354d36e240cf1bd753290f3dc7199a7"
+dependencies = [
+ "bitflags 1.3.2",
+ "libc",
+ "mach2",
+ "windows-sys 0.52.0",
+]
+
[[package]]
name = "renderdoc-sys"
version = "1.1.0"
@@ -2637,6 +2837,12 @@ version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c1bbb9f3c5c463a01705937a24fdabc5047929ac764b2d5b9cf681c1f5041ed5"
+[[package]]
+name = "target-lexicon"
+version = "0.13.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
+
[[package]]
name = "term"
version = "1.2.1"
@@ -2827,12 +3033,6 @@ version = "1.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb"
-[[package]]
-name = "typewit"
-version = "1.15.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bc19094686c694eb41b3b99dcc2f2975d4b078512fa22ae6c63f7ca318bdcff7"
-
[[package]]
name = "unicode-ident"
version = "1.0.24"
@@ -2981,6 +3181,28 @@ dependencies = [
"unicode-ident",
]
+[[package]]
+name = "wasmtime-internal-core"
+version = "44.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8f2c7fa6523647262bfb4095dbdf4087accefe525813e783f81a0c682f418ce4"
+dependencies = [
+ "hashbrown 0.16.1",
+ "libm",
+]
+
+[[package]]
+name = "wasmtime-internal-jit-icache-coherence"
+version = "44.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6a1859e920871515d324fb9757c3e448d6ed1512ca6ccdff14b6e016505d6ada"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "wasmtime-internal-core",
+ "windows-sys 0.61.2",
+]
+
[[package]]
name = "wayland-backend"
version = "0.3.15"