Lines Matching defs:file
4 // you may not use this file except in compliance with the License.
295 FILE* file = nullptr;
297 fopen_s(&file, input_file.c_str(), "rb");
299 file = fopen(input_file.c_str(), "rb");
301 if (!file) {
306 fseek(file, 0, SEEK_END);
307 uint64_t tell_file_size = static_cast<uint64_t>(ftell(file));
309 std::cerr << "Input file of incorrect size: " << input_file << std::endl;
310 fclose(file);
313 fseek(file, 0, SEEK_SET);
320 size_t bytes_read = fread(data.data(), sizeof(char), file_size, file);
321 fclose(file);
488 std::string file;
492 for (const auto& file : options.input_filenames) {
493 auto char_data = ReadFile(file);
496 std::cerr << file << " is empty." << std::endl;
497 failures.push_back(file);
501 // Parse file path and set it for delegate to use when loading buffer data.
502 delegate.SetScriptPath(file.substr(0, file.find_last_of("/\\") + 1));
509 std::cerr << file << ": " << result.Error() << std::endl;
510 failures.push_back(file);
518 recipe_data.back().file = file;
611 const auto& file = recipe_data_elem.file;
616 std::cerr << file << ": " << result.Error() << std::endl;
617 failures.push_back(file);
628 std::cerr << "Cannot open file for shader dump: ";
688 std::cerr << "Cannot open file for image dump: ";
703 std::cerr << "Cannot open file for buffer dump: ";