Home | History | Annotate | Download | only in vkjson

Lines Matching refs:instance

37   bool instance = false;
46 if (arg == "--instance" || arg == "-i") {
47 options->instance = true;
74 if (options->instance && (options->device_index != unsignedNegOne ||
77 "the whole instance." << std::endl;
85 if (options->instance && options->output_file.empty()) {
86 std::cerr << "Must specify an output file when dumping the whole instance."
90 if (!options->output_file.empty() && !options->instance &&
92 std::cerr << "Must specify instance, device index, or device name when "
100 bool Dump(const VkJsonInstance& instance, const Options& options) {
104 instance.devices.size()) {
106 << " requested but only " << instance.devices.size()
110 out_device = &instance.devices[options.device_index];
112 for (const auto& device : instance.devices) {
148 : VkJsonInstanceToJson(instance);
172 VkJsonInstance instance = VkJsonGetInstance();
173 if (options.instance || options.device_index != unsignedNegOne ||
175 Dump(instance, options);
177 for (uint32_t i = 0, n = static_cast<uint32_t>(instance.devices.size()); i < n; i++) {
179 Dump(instance, options);