spirv_tools_sys::val

Function validator_options_set_relax_store_struct

Source
pub unsafe extern "C" fn validator_options_set_relax_store_struct(
    opts: *mut ValidatorOptions,
    toggle: bool,
)
Expand description

Record whether or not the validator should relax the rules on types for stores to structs. When relaxed, it will allow a type mismatch as long as the types are structs with the same layout. Two structs have the same layout if

  1. the members of the structs are either the same type or are structs with same layout, and

  2. the decorations that affect the memory layout are identical for both types. Other decorations are not relevant.