[−][src]Function spirv_reflect::ffi::spvReflectGetEntryPointDescriptorBinding
pub unsafe extern "C" fn spvReflectGetEntryPointDescriptorBinding(
p_module: *const SpvReflectShaderModule,
entry_point: *const c_char,
binding_number: u32,
set_number: u32,
p_result: *mut SpvReflectResult
) -> *const SpvReflectDescriptorBinding
@fn spvReflectGetEntryPointDescriptorBinding @brief Get the descriptor binding with the given binding number and set number that is used in the static call tree of a certain entry point. @param p_module Pointer to an instance of SpvReflectShaderModule. @param entry_point The entry point to get the binding from. @param binding_number The "binding" value of the requested descriptor binding. @param set_number The "set" value of the requested descriptor binding. @param p_result If successful, SPV_REFLECT_RESULT_SUCCESS will be written to *p_result. Otherwise, a error code indicating the cause of the failure will be stored here. @return If the entry point contains a descriptor binding that matches the provided [binding_number, set_number] values, a pointer to that binding is returned. The caller must not free this pointer. If no match can be found, or if an unrelated error occurs, the return value will be NULL. Detailed error results are written to *pResult. @note If the entry point contains multiple desriptor bindings with the same set and binding numbers, there are no guarantees about which binding will be returned.