|
| 1 | +--- |
| 2 | +outline: [2, 3] |
| 3 | +--- |
| 4 | + |
| 5 | +# Class `pinnacle.debug` |
| 6 | + |
| 7 | + |
| 8 | +Debugging utilities. |
| 9 | + |
| 10 | +> [!WARNING] |
| 11 | +> This module is not governed by the API stability guarantees. |
| 12 | +
|
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | +## Functions |
| 17 | + |
| 18 | +### <Badge type="function" text="function" /> set_damage_visualization |
| 19 | + |
| 20 | +<div class="language-lua"><pre><code>function pinnacle.debug.set_damage_visualization(set: boolean)</code></pre></div> |
| 21 | + |
| 22 | +Sets damage visualization. |
| 23 | + |
| 24 | +When on, parts of the screen that are damaged after rendering will have |
| 25 | +red rectangles drawn where the damage is. |
| 26 | + |
| 27 | + |
| 28 | +#### Parameters |
| 29 | + |
| 30 | +`set`<br> |
| 31 | +  ┃ <code>boolean</code><br> |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | +### <Badge type="function" text="function" /> toggle_damage_visualization |
| 39 | + |
| 40 | +<div class="language-lua"><pre><code>function pinnacle.debug.toggle_damage_visualization()</code></pre></div> |
| 41 | + |
| 42 | +Toggles damage visualization. |
| 43 | + |
| 44 | +When on, parts of the screen that are damaged after rendering will have |
| 45 | +red rectangles drawn where the damage is. |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | +### <Badge type="function" text="function" /> set_opaque_region_visualization |
| 53 | + |
| 54 | +<div class="language-lua"><pre><code>function pinnacle.debug.set_opaque_region_visualization(set: boolean)</code></pre></div> |
| 55 | + |
| 56 | +Sets opaque region visualization. |
| 57 | + |
| 58 | +When on, parts of the screen that are opaque will have a transparent blue rectangle |
| 59 | +drawn over it, while parts that are not opaque will have a transparent red rectangle |
| 60 | +drawn. |
| 61 | + |
| 62 | + |
| 63 | +#### Parameters |
| 64 | + |
| 65 | +`set`<br> |
| 66 | +  ┃ <code>boolean</code><br> |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | +### <Badge type="function" text="function" /> toggle_opaque_region_visualization |
| 74 | + |
| 75 | +<div class="language-lua"><pre><code>function pinnacle.debug.toggle_opaque_region_visualization()</code></pre></div> |
| 76 | + |
| 77 | +Toggles opaque region visualization. |
| 78 | + |
| 79 | +When on, parts of the screen that are opaque will have a transparent blue rectangle |
| 80 | +drawn over it, while parts that are not opaque will have a transparent red rectangle |
| 81 | +drawn. |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | +### <Badge type="function" text="function" /> set_cursor_plane_scanout |
| 89 | + |
| 90 | +<div class="language-lua"><pre><code>function pinnacle.debug.set_cursor_plane_scanout(set: boolean)</code></pre></div> |
| 91 | + |
| 92 | +Sets cursor plane scanout. |
| 93 | + |
| 94 | + |
| 95 | +#### Parameters |
| 96 | + |
| 97 | +`set`<br> |
| 98 | +  ┃ <code>boolean</code><br> |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | +### <Badge type="function" text="function" /> toggle_cursor_plane_scanout |
| 106 | + |
| 107 | +<div class="language-lua"><pre><code>function pinnacle.debug.toggle_cursor_plane_scanout()</code></pre></div> |
| 108 | + |
| 109 | +Toggles cursor plane scanout. |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | +### <Badge type="function" text="function" /> set_process_piping |
| 117 | + |
| 118 | +<div class="language-lua"><pre><code>function pinnacle.debug.set_process_piping(set: boolean)</code></pre></div> |
| 119 | + |
| 120 | +Enables or disables process spawning setting up pipes to give fds to the config. |
| 121 | + |
| 122 | + |
| 123 | +#### Parameters |
| 124 | + |
| 125 | +`set`<br> |
| 126 | +  ┃ <code>boolean</code><br> |
| 127 | + |
| 128 | + |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | +### <Badge type="function" text="function" /> toggle_process_piping |
| 134 | + |
| 135 | +<div class="language-lua"><pre><code>function pinnacle.debug.toggle_process_piping()</code></pre></div> |
| 136 | + |
| 137 | +Toggles process spawning setting up pipes to give fds to the config. |
| 138 | + |
| 139 | + |
| 140 | + |
| 141 | + |
| 142 | + |
0 commit comments