From 4be5215641a4b8d6078590518c9bb0e95dcd5f35 Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Thu, 19 Sep 2024 13:44:58 +0100 Subject: [PATCH] layer: Print application info at instance creation time --- layer/VkLayer_FROG_gamescope_wsi.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/layer/VkLayer_FROG_gamescope_wsi.cpp b/layer/VkLayer_FROG_gamescope_wsi.cpp index cbb71e26d4..c817880f18 100644 --- a/layer/VkLayer_FROG_gamescope_wsi.cpp +++ b/layer/VkLayer_FROG_gamescope_wsi.cpp @@ -507,6 +507,19 @@ namespace GamescopeWSILayer { fprintf(stderr, "[Gamescope WSI] Failed to connect to gamescope socket: %s. Bypass layer will be unavailable.\n", gamescopeWaylandSocket()); return result; } + + { + if (pCreateInfo->pApplicationInfo) { + fprintf(stderr, "[Gamescope WSI] Application info:\n"); + fprintf(stderr, " pApplicationName: %s\n", pCreateInfo->pApplicationInfo->pApplicationName); + fprintf(stderr, " applicationVersion: %u\n", pCreateInfo->pApplicationInfo->applicationVersion); + fprintf(stderr, " pEngineName: %s\n", pCreateInfo->pApplicationInfo->pEngineName); + fprintf(stderr, " engineVersion: %u\n", pCreateInfo->pApplicationInfo->engineVersion); + fprintf(stderr, " apiVersion: %u\n", pCreateInfo->pApplicationInfo->apiVersion); + } else { + fprintf(stderr, "[Gamescope WSI] No application info given.\n"); + } + } { uint32_t appId = clientAppId();