[][src]Function spirv_reflect::ffi::spvReflectEnumerateDescriptorBindings

pub unsafe extern "C" fn spvReflectEnumerateDescriptorBindings(
    p_module: *const SpvReflectShaderModule,
    p_count: *mut u32,
    pp_bindings: *mut *mut SpvReflectDescriptorBinding
) -> SpvReflectResult

@fn spvReflectEnumerateDescriptorBindings

@param p_module Pointer to an instance of SpvReflectShaderModule. @param p_count If pp_bindings is NULL, the module's descriptor binding count (across all descriptor sets) will be stored here. If pp_bindings is not NULL, *p_count must contain the module's descriptor binding count. @param pp_bindings If NULL, the module's total descriptor binding count will be written to *p_count. If non-NULL, pp_bindings must point to an array with p_count entries, where pointers to the module's descriptor bindings will be written. The caller must not free the binding pointers written to this array. @return If successful, returns SPV_REFLECT_RESULT_SUCCESS. Otherwise, the error code indicates the cause of the failure.