Function spirv_tools_sys::assembler::disassemble
source · pub unsafe extern "C" fn disassemble(
tool: *const ToolContext,
binary: *const u32,
size: usize,
options: u32,
out_text: *mut *mut Text,
diagnostic: *mut *mut Diagnostic
) -> SpirvResult
Expand description
Decodes the given SPIR-V binary representation to its assembly text. The word_count parameter specifies the number of words for binary. The options parameter is a bit field of spv_binary_to_text_options_t. Decoded text will be stored into *text. Any error will be written into *diagnostic if diagnostic is non-null, otherwise the context’s message consumer will be used.