MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / DumpShader

Function DumpShader

tools/fuzz/fuzz.cpp:642–648  ·  view source on GitHub ↗

Dumps |binary| to file |filename|. Useful for interactive debugging.

Source from the content-addressed store, hash-verified

640
641// Dumps |binary| to file |filename|. Useful for interactive debugging.
642void DumpShader(const std::vector<uint32_t>& binary, const char* filename) {
643 auto write_file_succeeded =
644 WriteFile(filename, "wb", &binary[0], binary.size());
645 if (!write_file_succeeded) {
646 std::cerr << "Failed to dump shader" << std::endl;
647 }
648}
649
650// Dumps the SPIRV-V module in |context| to file |filename|. Useful for
651// interactive debugging.

Callers

nothing calls this directly

Calls 4

WriteFileFunction · 0.85
sizeMethod · 0.45
ToBinaryMethod · 0.45
moduleMethod · 0.45

Tested by

no test coverage detected