pub fn pack_dispatch_table(
entries: &[OpcodeHandlerEntry],
) -> Result<Vec<u32>, PackError>Expand description
Pack a dispatch table of OpcodeHandlerEntry into one u32 per entry,
suitable for upload as a constant buffer. The output index matches the
input index; output[opcode_byte] is the packed entry.
ยงErrors
Returns the first encoding overflow encountered. Caller fixes by reducing the handler-offset (split into chunks) or refusing to register an arity > 15 handler.