GPU, graphics, browser, and XR
Keep plans deterministic, execute at the edge
GenesisCode treats compute dispatch, windows, input, audio, frame graphs, browser APIs, and XR sessions as host capabilities. Pure code constructs descriptors, scenes, command plans, and state transitions; a backend performs device work.
Choose an explicit backend profile
- First-party runtime for supported native host implementations.
- Device runtime when real GPU execution is required and proven by hardware evidence.
- Bridge profile for pinned external host adapters.
- WASI/browser profile for deterministic host-provided responses.
- Headless/fallback profile only when the acceptance contract permits it.
Never let a fallback satisfy a device-required release claim. Read runtime backend profiles.
Graphics loop
- Build immutable scene/UI state.
- Derive a frame graph and bounded draw/compute command set.
- Perform input, surface, audio, GPU, and present effects.
- Record deterministic response facts and frame metadata.
- Replay state transitions against the recorded host boundary.
Evidence
Capture adapter/backend identity, fallback mode, workload identity, output hashes, timing distribution, warmup policy, and negative controls. Hardware microbench evidence belongs on the declared device runner, not on a generic CI fallback.
Start with the executable GPU compute, game loop, browser, and XR examples. Agents should select the corresponding stable recipe ID from the canonical recipe-card catalog.