Lines Matching defs:filename
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());
651 // Dumps the SPIRV-V module in |context| to file |filename|. Useful for
653 void DumpShader(spvtools::opt::IRContext* context, const char* filename) {
656 DumpShader(binary, filename);
659 // Dumps |transformations| to file |filename| in binary format. Useful for
663 const char* filename) {
665 transformations_file.open(filename, std::ios::out | std::ios::binary);
670 // Dumps |transformations| to file |filename| in JSON format. Useful for
674 const char* filename) {
681 std::ofstream transformations_json_file(filename);