Lines Matching defs:binary
75 R"(%s - Fuzzes an equivalent SPIR-V binary based on a given binary.
82 The SPIR-V binary is read from <input.spv>. If <input.facts> is also present,
83 facts about the SPIR-V binary are read from this file.
85 The transformed SPIR-V binary is written to <output.spv>. Human-readable and
86 binary representations of the transformations that were applied are written to
91 if a given SPIR-V binary is interesting. The SPIR-V binary will be passed to
125 fuzzing. Aborts fuzzing early if an invalid binary is created.
159 Aborts if an invalid binary is created. Useful for debugging
447 std::ios::in | std::ios::binary);
533 std::vector<uint32_t> binary, uint32_t reductions_applied) -> bool {
540 WriteFile(spv_file.c_str(), "wb", &binary[0], binary.size());
601 spvtools::Error(FuzzDiagnostic, nullptr, {}, "Initial binary is invalid");
642 // Dumps |binary| to file |filename|. Useful for interactive debugging.
643 void DumpShader(const std::vector<uint32_t>& binary, const char* filename) {
645 WriteFile(filename, "wb", &binary[0], binary.size());
654 std::vector<uint32_t> binary;
655 context->module()->ToBinary(&binary, false);
656 DumpShader(binary, filename);
659 // Dumps |transformations| to file |filename| in binary format. Useful for
665 transformations_file.open(filename, std::ios::out | std::ios::binary);
781 spvtools::Error(FuzzDiagnostic, nullptr, {}, "Error writing out binary");
793 std::ios::out | std::ios::binary);
799 "Error writing out transformations binary");