1{ 2 "description": [ 3 "Copyright 2019 The ANGLE Project Authors. All rights reserved.", 4 "Use of this source code is governed by a BSD-style license that can be", 5 "found in the LICENSE file.", 6 "", 7 "overlay_widgets.json: Layout of Overlay widgets.", 8 "", 9 "Data for every overlay widget 'Widget' is a map with the following keys:", 10 "", 11 " - type: one of WidgetType types (with constructor params), such as 'PerSecond' or", 12 " 'RunningGraph(64)'", 13 " - color: in [R,G,B,A] format where every value is in [0,255]", 14 " - coords: in [X,Y] which is the distance from the edges of the window, with negative", 15 " values representing distance from the right/bottom edge. If a value is given", 16 " in the form of 'Widget2.<edge>.<mode>', the calculated value for <edge> in", 17 " Widget2 is used. <edge> is one of:", 18 " - 'left', 'right': valid for x", 19 " - 'top', 'bottom': valid for y", 20 " <mode> is one of:", 21 " - 'align': the requested value is used", 22 " - 'adjacent': the value is calculated such that two widgets become adjacent", 23 " - font: for Text widgets, one of 'large', 'medium' and 'small'", 24 " - length: for Text widgets, maximum number of characters for this widget", 25 " - bar_width: for Graph widgets, size of each graph bar.", 26 " - height: for Graph widgets, the height of the graph.", 27 " - text: for Graph widgets, data for the attached Text widget. This is a map with the same", 28 " Text keys as above except type, which is implicitly Text." 29 ], 30 "widgets": [ 31 { 32 "name": "FPS", 33 "type": "PerSecond", 34 "color": [127, 191, 255, 255], 35 "coords": [10, 10], 36 "font": "medium", 37 "length": 12 38 }, 39 { 40 "name": "VulkanLastValidationMessage", 41 "type": "Text", 42 "color": [255, 0, 0, 255], 43 "coords": [10, -10], 44 "font": "small", 45 "length": 150 46 }, 47 { 48 "name": "VulkanValidationMessageCount", 49 "type": "Count", 50 "color": [255, 0, 0, 255], 51 "coords": [10, "VulkanLastValidationMessage.top.adjacent"], 52 "font": "small", 53 "length": 25 54 }, 55 { 56 "name": "VulkanRenderPassCount", 57 "type": "RunningGraph(60)", 58 "color": [75, 200, 0, 200], 59 "coords": [10, 100], 60 "bar_width": 5, 61 "height": 100, 62 "description": { 63 "color": [75, 200, 0, 255], 64 "coords": ["VulkanRenderPassCount.left.align", "VulkanRenderPassCount.top.adjacent"], 65 "font": "small", 66 "length": 40 67 } 68 }, 69 { 70 "name": "VulkanSecondaryCommandBufferPoolWaste", 71 "type": "RunningHistogram(50)", 72 "color": [255, 200, 75, 200], 73 "coords": [-50, 100], 74 "bar_width": 6, 75 "height": 100, 76 "description": { 77 "color": [255, 200, 75, 255], 78 "coords": ["VulkanSecondaryCommandBufferPoolWaste.left.align", 79 "VulkanSecondaryCommandBufferPoolWaste.top.adjacent"], 80 "font": "small", 81 "length": 40 82 } 83 } 84 ] 85} 86