spirv_tools_sys::val

Function validator_options_set_relax_logical_pointer

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

Records whether or not the validator should relax the rules on pointer usage in logical addressing mode.

When relaxed, it will allow the following usage cases of pointers:

  1. OpVariable allocating an object whose type is a pointer type
  2. OpReturnValue returning a pointer value