Skip to main content

transpile_device_function

Function transpile_device_function 

Source
pub fn transpile_device_function(func: &ItemFn) -> Result<String>
Expand description

Transpile a Rust function to a WGSL helper function.

This generates a callable function (not a compute entry point) from Rust code.