[−][src]Function spirv_reflect::ffi::spvReflectEnumerateDescriptorSets
pub unsafe extern "C" fn spvReflectEnumerateDescriptorSets(
p_module: *const SpvReflectShaderModule,
p_count: *mut u32,
pp_sets: *mut *mut SpvReflectDescriptorSet
) -> SpvReflectResult
@fn spvReflectEnumerateDescriptorSets
@param p_module Pointer to an instance of SpvReflectShaderModule. @param p_count If pp_sets is NULL, the module's descriptor set count will be stored here. If pp_sets is not NULL, *p_count must contain the module's descriptor set count. @param pp_sets If NULL, the module's total descriptor set count will be written to *p_count. If non-NULL, pp_sets must point to an array with p_count entries, where pointers to the module's descriptor sets will be written. The caller must not free the descriptor set pointers written to this array. @return If successful, returns SPV_REFLECT_RESULT_SUCCESS. Otherwise, the error code indicates the cause of the failure.