Lines Matching defs:binary
56 R"(%s - Reduce a SPIR-V binary file with respect to a user-provided
61 The SPIR-V binary is read from <input.spv>. The reduced SPIR-V binary is
64 Whether a binary is interesting is determined by <interestingness_test>, which
71 * The script should take the path to a SPIR-V binary file (.spv) as an
72 argument, and exit with code 0 if and only if the binary file is
73 interesting. The binary will be passed to the script as an argument after
76 * Example: an interestingness test for reducing a SPIR-V binary file that
79 - invoke "foo" on the binary passed as the script argument;
243 // Dumps |binary| to file |filename|. Useful for interactive debugging.
244 void DumpShader(const std::vector<uint32_t>& binary, const char* filename) {
246 WriteFile(filename, "wb", &binary[0], binary.size());
255 std::vector<uint32_t> binary;
256 context->module()->ToBinary(&binary, false);
257 DumpShader(binary, filename);
291 std::vector<uint32_t> binary, uint32_t reductions_applied) -> bool {
299 WriteFile(spv_file.c_str(), "wb", &binary[0], binary.size());