Lines Matching refs:instance
41 bool instance = false;
50 if (arg == "--instance" || arg == "-i") {
51 options->instance = true;
78 if (options->instance && (options->device_index != unsignedNegOne ||
81 "the whole instance." << std::endl;
89 if (options->instance && options->output_file.empty()) {
90 std::cerr << "Must specify an output file when dumping the whole instance."
94 if (!options->output_file.empty() && !options->instance &&
96 std::cerr << "Must specify instance, device index, or device name when "
104 bool Dump(const VkJsonInstance& instance, const Options& options) {
108 instance.devices.size()) {
110 << " requested but only " << instance.devices.size()
114 out_device = &instance.devices[options.device_index];
116 for (const auto& device : instance.devices) {
148 : VkJsonInstanceToJson(instance);
167 VkJsonInstance instance = VkJsonGetInstance();
168 if (options.instance || options.device_index != unsignedNegOne ||
170 Dump(instance, options);
172 for (uint32_t i = 0, n = instance.devices.size(); i < n; i++) {
174 Dump(instance, options);