Expand description
Procedural macros that generate WasserXR’s C ABI plugin bindings.
These macros let plugin authors write normal Rust systems, components, and
asset types while emitting the wxr_* functions the runtime resolves from
loaded plugins.
Attribute Macros§
- asset_
type - Turns a Rust asset struct into the C ABI functions WasserXR needs.
- asset_
type_ creator - Wraps
fn create(scene: &mut Scene, data: &str) -> Option<AssetType>as an asset creator. - attacher
- Turns a Rust system attach function into the C ABI function WasserXR needs.
- component
- Turns a Rust component struct into the C ABI functions WasserXR needs.
- component_
creator - Wraps
fn create(scene: &mut Scene) -> Option<Component>as a component creator. - detacher
- Turns a Rust system detach function into the C ABI function WasserXR needs.
- system
- Turns a Rust system function into the C ABI functions WasserXR needs.