Skip to main content

Crate sg_abi

Crate sg_abi 

Source
Expand description

Shared ABI of the 0x1 sg host API.

  • gpu: the “sg-gpu v1” wire format (postcard-encoded requests/replies)
  • input: input event records and DOM-style key codes
  • display: present modes, frame pacing, fullscreen and HDR metadata
  • hdr: HDR output negotiation, tone mapping and encoding (WGSL + reference)

Re-exports§

pub use postcard;
pub use wgt;

Modules§

display
Display ABI: present modes, frame pacing, fullscreen and HDR metadata.
gpu
Wire format of the 0x1 GPU API (“sg-gpu v1”).
hdr
HDR output helpers shared by guests (WGSL) and the host’s self-tests (Rust).
input
Input event ABI shared by host and guest.