[−][src]Function spirv_reflect::ffi::spvReflectGetDescriptorBinding
pub unsafe extern "C" fn spvReflectGetDescriptorBinding(
p_module: *const SpvReflectShaderModule,
binding_number: u32,
set_number: u32,
p_result: *mut SpvReflectResult
) -> *const SpvReflectDescriptorBinding
@fn spvReflectGetDescriptorBinding
@param p_module Pointer to an instance of SpvReflectShaderModule. @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 module 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 module contains multiple desriptor bindings with the same set and binding numbers, there are no guarantees about which binding will be returned.