Expand description
Rendering, texture, mesh, material, scene, camera, and presentation contracts.
This namespace intentionally exposes no placeholder renderer or presenter. Stateful rendering and presentation types are admitted only with explicit runtime ownership, synchronization, failure, and lifecycle behavior.
Structs§
- Aabb
- Axis-aligned bounding box.
- Camera
- Semantic camera value.
- Canvas
Grid Frame - Parameters for one procedural canvas-grid frame.
- Flat
Color Material - Solid-color material for UI elements and debug geometry.
- Material
Id - Stable identity of one material in a
Scene. Zero is invalid. - Mesh
Data - Indexed triangle-list mesh snapshot.
- Mesh
Vertex - CPU vertex contract used by the first scene compiler.
- Render
Frame - Generation-safe lease for one submitted headless target.
- Renderer
- Runtime-borrowing headless render-to-texture session.
- Renderer
Config - Configuration for one headless
Renderertarget ring. - Scene
- Caller-owned CPU semantic scene snapshot.
- Scene
Draw Packet - Per-node draw range produced by
compile_scene_packets. - Scene
Material - Named material entry in a semantic scene.
- Scene
Mesh - Named immutable mesh value in a semantic scene.
- Scene
Mesh Id - Stable identity of one mesh in a
Scene. Zero is invalid. - Scene
Node - One hierarchy node that optionally instances a mesh.
- Scene
Node Id - Stable identity of one node in a
Scene. Zero is invalid. - Surface
Material - Metallic/roughness PBR material for scene geometry.
- Texture
- Packed RGBA8 texture value reusable by Render, Presenter, Image, and UI.
- Texture
Handle - Opaque index into the owning
Scene’s texture registry. - Unlit
Material - Textured unlit material for image and video display.
Enums§
- Alpha
Mode - Alpha blending mode for
UnlitMaterialandSurfaceMaterial. - Camera
Projection - Projection kind for a
Camera. - Material
- Semantic material value — CPU-side only, no GPU handles.
Functions§
- blit
- Deep-copy a packed Texture into independent device storage.
- clear
- Return an independent packed Texture filled with one RGBA8 clear color.
- compile_
scene - Compile visible scene instances into one deterministic indexed mesh snapshot.
- compile_
scene_ packets - Compile visible scene nodes into a merged
MeshDataand oneSceneDrawPacketper visible node that contributes geometry. - compute_
bounds - Recompute and store the tight axis-aligned bounding box for
mesh. - create_
cube - Create a 3D axis-aligned cube (12 triangles, 24 vertices, size × size × size).
- create_
fullscreen_ quad - Create a fullscreen NDC quad (2 triangles, 4 vertices) in
[-1, 1]XY with top-origin image UVs. Used for post-processing passes. - create_
quad - Create a centered quad (2 triangles, 4 vertices) with top-origin image UVs.
- flip_
uvs_ y - Flip all vertex UVs vertically (V ← 1 − V).
- save_
texture_ file - Read and save one packed RGBA8 Texture using its path extension.
- scale
- Scale all vertex positions and normals.
- texture_
from_ file - Decode a still-image file directly into a packed RGBA8 Texture.
- texture_
from_ file_ on - Decode a still-image file directly into a packed RGBA8 Texture on a particular runtime.
- texture_
from_ image - Convert one packed RGBA8 HWC image into an independent Texture value.
- texture_
from_ rgba8 - Upload one exact packed row-major RGBA8 host image as a Texture.
- texture_
from_ rgba8_ on - Upload one exact packed row-major RGBA8 host image as a Texture on a particular runtime.
- transform
- Apply an affine matrix to all vertex positions and normals.
- translate
- Translate all vertex positions in-place.
- validate_
scene - Validate one scene without retaining or uploading it.