[−][src]Function spirv_reflect::ffi::spvReflectChangeInputVariableLocation
pub unsafe extern "C" fn spvReflectChangeInputVariableLocation(
p_module: *mut SpvReflectShaderModule,
p_input_variable: *const SpvReflectInterfaceVariable,
new_location: u32
) -> SpvReflectResult
@fn spvReflectChangeInputVariableLocation @brief Assign a new location to an input interface variable. In addition to updating the reflection data, this function modifies the underlying SPIR-V bytecode. The updated code can be retrieved with spvReflectGetCode(). It is the caller's responsibility to avoid assigning the same location to multiple input variables. If the input variable is used by multiple entry points in the module, it will be changed in all of them. @param p_module Pointer to an instance of SpvReflectShaderModule. @param p_input_variable Pointer to the input variable to update. @param new_location The new location to assign to p_input_variable. @return If successful, returns SPV_REFLECT_RESULT_SUCCESS. Otherwise, the error code indicates the cause of the failure.