Skip to main content

sg_abi/
lib.rs

1//! Shared ABI of the 0x1 `sg` host API.
2//!
3//! - [`gpu`]: the "sg-gpu v1" wire format (postcard-encoded requests/replies)
4//! - [`input`]: input event records and DOM-style key codes
5//! - [`display`]: present modes, frame pacing, fullscreen and HDR metadata
6//! - [`hdr`]: HDR output negotiation, tone mapping and encoding (WGSL + reference)
7
8#![forbid(unsafe_code)]
9
10pub use postcard;
11pub use wgt;
12
13pub mod display;
14pub mod gpu;
15pub mod hdr;
16pub mod input;