Skip to content

Commit

Permalink
layer: Print application info at instance creation time
Browse files Browse the repository at this point in the history
  • Loading branch information
misyltoad committed Sep 19, 2024
1 parent 03e5dd0 commit 4be5215
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions layer/VkLayer_FROG_gamescope_wsi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4be5215

Please sign in to comment.