This is used to help dump SPIR-V while debugging intermediate phases of any altercations to the SPIR-V
| 163 | |
| 164 | // This is used to help dump SPIR-V while debugging intermediate phases of any altercations to the SPIR-V |
| 165 | void 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 | } |