pub fn transpile_device_function(func: &ItemFn) -> Result<String>
Transpile a Rust function to a WGSL helper function.
This generates a callable function (not a compute entry point) from Rust code.