Skip to main content

WEB_BATCH_FIELDS

Constant WEB_BATCH_FIELDS 

Source
pub const WEB_BATCH_FIELDS: &[WebBatchField];
Expand description

MutationBatch as a wasm32 target lays it out.

The offsets are written down rather than read from offset_of! because codegen runs on the machine that generates, not the machine that runs: a 64-bit host makes the same #[repr(C)] struct 24 bytes with an 8 byte pointer. The generated wasm glue asserts this table against the real layout, so a compiler that disagrees stops that build instead of producing a Renderer that reads the wrong four bytes.