Skip to main content

Module zero_copy_views

Module zero_copy_views 

Source
Expand description

Zero-copy WASM buffer views and std140-aligned uniform layouts.

Re-exports the canonical zero-copy views and std140 layout primitives from etalon_render::webizen_core::zero_copy_views.

Structs§

CameraUniform
Camera uniform block: view + projection matrices (std140 layout).
ModelUniform
Model uniform block: model matrix + time scalar (std140 layout).
Std140Field
A field in a std140 layout calculation.
TimeUniform
Time uniform block: sim time + resolution (std140 layout).

Enums§

Std140Type
std140 field type descriptor (used by the layout calculator).
Std140TypeSimple
Simplified type for array elements (arrays can’t contain arrays in this simplified calculator, but can contain scalars/vectors/matrices).

Functions§

compute_std140_layout
Alias for std140_layout.
std140_layout
Calculate the std140 layout for a list of named fields.

Type Aliases§

Std140Layout
Computed std140 struct layout: field descriptors and 16-byte-aligned total byte size.