| 119 | } |
| 120 | |
| 121 | void 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 | |
| 127 | void DumpShader(const std::vector<uint32_t>& binary, const char* filename) { |
| 128 | auto write_file_succeeded = |