From b6b275212dc4eef9014f9e8bd247b72debde4b8b Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Mon, 25 Feb 2019 12:37:27 +0000 Subject: vulkan/overlay: rework option parsing Makes adding new options easier. Signed-off-by: Lionel Landwerlin Reviewed-by: Eric Engestrom --- src/vulkan/overlay-layer/README | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'src/vulkan/overlay-layer/README') diff --git a/src/vulkan/overlay-layer/README b/src/vulkan/overlay-layer/README index d3fb03a7e94..ae0d6dc37e9 100644 --- a/src/vulkan/overlay-layer/README +++ b/src/vulkan/overlay-layer/README @@ -2,21 +2,16 @@ A Vulkan layer to display information about the running application using an overlay. To turn on the layer run : -``` + VK_INSTANCE_LAYERS=VK_LAYER_MESA_overlay /path/to/my_vulkan_app -``` List the available statistics : -``` -VK_INSTANCE_LAYERS=VK_LAYER_MESA_overlay VK_LAYER_MESA_OVERLAY_STATS=help /path/to/my_vulkan_app -``` + +VK_INSTANCE_LAYERS=VK_LAYER_MESA_overlay VK_LAYER_MESA_OVERLAY_CONFIG=help /path/to/my_vulkan_app Turn on some statistics : -``` -VK_INSTANCE_LAYERS=VK_LAYER_MESA_overlay VK_LAYER_MESA_OVERLAY_STATS=submit,draw,pipeline-graphics /path/to/my_vulkan_app -``` +VK_INSTANCE_LAYERS=VK_LAYER_MESA_overlay VK_LAYER_MESA_OVERLAY_CONFIG=submit=1,draw=1,pipeline_graphics=1 /path/to/my_vulkan_app Position the layer : -``` -VK_INSTANCE_LAYERS=VK_LAYER_MESA_overlay VK_LAYER_MESA_OVERLAY_STATS=submit,draw,pipeline-graphics VK_LAYER_MESA_OVERLAY_POSITION=top-right /path/to/my_vulkan_app -``` + +VK_INSTANCE_LAYERS=VK_LAYER_MESA_overlay VK_LAYER_MESA_OVERLAY_CONFIG=submit=1,draw=1,pipeline_graphics=1,position=top-right /path/to/my_vulkan_app -- cgit v1.2.3