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

Function DumpShader

test/fuzz/fuzz_test_util.cpp:121–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121void DumpShader(opt::IRContext* context, const char* filename) {
122 std::vector<uint32_t> binary;
123 context->module()->ToBinary(&binary, false);
124 DumpShader(binary, filename);
125}
126
127void DumpShader(const std::vector<uint32_t>& binary, const char* filename) {
128 auto write_file_succeeded =

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected