From 1f550ddec2f3519f3ee7fd9cb1941b5642796ae2 Mon Sep 17 00:00:00 2001 From: richard-lunarg Date: Tue, 22 Dec 2020 16:50:21 -0500 Subject: Vulkaninfo for iOS devices --- vulkaninfo/vulkaninfo.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'vulkaninfo/vulkaninfo.cpp') diff --git a/vulkaninfo/vulkaninfo.cpp b/vulkaninfo/vulkaninfo.cpp index 99d5a628..3c7107bc 100644 --- a/vulkaninfo/vulkaninfo.cpp +++ b/vulkaninfo/vulkaninfo.cpp @@ -22,6 +22,7 @@ * Author: Jeremy Kniager * Author: Shannon McPherson * Author: Bob Ellison + * Author: Richard Wright * Author: Charles Giessen * */ @@ -976,8 +977,9 @@ int main(int argc, char **argv) { if (json_output) { std::string start_string = std::string("{\n\t\"$schema\": \"https://schema.khronos.org/vulkan/devsim_1_0_0.json#\",\n") + - "\t\"comments\": {\n\t\t\"desc\": \"JSON configuration file describing GPU " + std::to_string(selected_gpu) + - ". Generated using the vulkaninfo program.\",\n\t\t\"vulkanApiVersion\": \"" + + "\t\"comments\": {\n\t\t\"desc\": \"JSON configuration file describing GPU " + std::to_string(selected_gpu) + " (" + + gpus.at(selected_gpu)->props.deviceName + + "). Generated using the vulkaninfo program.\",\n\t\t\"vulkanApiVersion\": \"" + VkVersionString(instance.vk_version) + "\"\n" + "\t}"; #ifdef VK_USE_PLATFORM_IOS_MVK json_out = std::ofstream("vulkaninfo.json"); @@ -999,7 +1001,8 @@ int main(int argc, char **argv) { "{\n\t\"$schema\": " "\"https://schema.khronos.org/vulkan/devsim_VK_KHR_portability_subset-provisional-1.json#\",\n") + "\t\"comments\": {\n\t\t\"desc\": \"JSON configuration file describing GPU " + std::to_string(selected_gpu) + - "'s portability features and properties. Generated using the vulkaninfo program.\",\n\t\t\"vulkanApiVersion\": " + "'s (" + gpus.at(selected_gpu)->props.deviceName + + "( portability features and properties. Generated using the vulkaninfo program.\",\n\t\t\"vulkanApiVersion\": " "\"" + VkVersionString(instance.vk_version) + "\"\n" + "\t}"; #ifdef VK_USE_PLATFORM_IOS_MVK -- cgit v1.2.3