MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / DumpSpirvToFile

Function DumpSpirvToFile

layers/utils/shader_utils.cpp:165–168  ·  view source on GitHub ↗

This is used to help dump SPIR-V while debugging intermediate phases of any altercations to the SPIR-V

Source from the content-addressed store, hash-verified

163
164// This is used to help dump SPIR-V while debugging intermediate phases of any altercations to the SPIR-V
165void DumpSpirvToFile(const std::string& file_path, const uint32_t* spirv, size_t spirv_dwords_count) {
166 std::ofstream debug_file(file_path, std::ios::out | std::ios::binary);
167 debug_file.write(reinterpret_cast<const char*>(spirv), spirv_dwords_count * sizeof(uint32_t));
168}

Callers 1

InstrumentShaderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected