Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26e4cb41 authored by Jesse Hall's avatar Jesse Hall Committed by android-build-merger
Browse files

vkinfo: Provide VkApplicationInfo am: dc7f6a6a

am: 6d7f727f

* commit '6d7f727f':
  vkinfo: Provide VkApplicationInfo
parents c187c1d4 6d7f727f
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -258,8 +258,17 @@ void GatherInfo(VulkanInfo* info, const Options& options) {
    // clang-format on
    uint32_t num_layers = sizeof(kValidationLayers) / sizeof(char*);

    const VkApplicationInfo application_info = {
        .sType = VK_STRUCTURE_TYPE_APPLICATION_INFO,
        .pApplicationName = "vkinfo",
        .applicationVersion = 0,
        .pEngineName = "vkinfo",
        .engineVersion = 0,
        .apiVersion = VK_API_VERSION,
    };
    const VkInstanceCreateInfo create_info = {
        .sType = VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO,
        .pApplicationInfo = &application_info,
        .enabledExtensionCount = num_extensions,
        .ppEnabledExtensionNames = extensions,
        .enabledLayerCount = (options.validate) ? num_layers : 0,