1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 5 <meta http-equiv="Content-Style-Type" content="text/css" /> 6 <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" /> 7 <style type="text/css"><!-- 8 span.static_style 9 { 10 font-size : 8pt; 11 color : white; 12 font-weight : bold; 13 background : #44f; 14 border-left : solid 1px #aaf; 15 border-top : solid 1px #aaf; 16 border-right : solid 1px #00c; 17 border-bottom : solid 1px #00c; 18 padding-left : 2px; 19 padding-right : 2px; 20 } 21 span.virtual_style 22 { 23 font-size : 8pt; 24 color : white; 25 font-weight : bold; 26 background : #0a0; 27 border-left : solid 1px #0f0; 28 border-top : solid 1px #0f0; 29 border-right : solid 1px #060; 30 border-bottom : solid 1px #060; 31 padding-left : 2px; 32 padding-right : 2px; 33 } 34 span.protected_style 35 { 36 font-size : 8pt; 37 color : white; 38 font-weight : bold; 39 background : #444; 40 border-left : solid 1px #ccc; 41 border-top : solid 1px #ccc; 42 border-right : solid 1px #222; 43 border-bottom : solid 1px #222; 44 padding-left : 2px; 45 padding-right : 2px; 46 } 47 --></style> 48 <title>nw::demo::CommandListSwapper</title> 49 </head> 50 <body> 51 <h1><CODE><a href="../../../nw/Overview.html">nw</a>::<a href="../../../nw/demo/Overview.html">demo</a>::CommandListSwapper</CODE> Class</h1> 52 <h2>Syntax</h2> 53 <div class="section"> 54 <pre class="definition">class CommandListSwapper</pre> 55 </div> 56 <h2>Description</h2> 57 <div class="section"> 58 <p>Class for managing the command list and its buffering.</p> 59 </div> 60 <a name="struct" id="struct"> 61 <h2>Structures</h2> 62 <div class="section"> 63 <table class="members"> 64 <tr> 65 <th> 66 <a href="../../../nw/demo/CommandListSwapper/Description/Overview.html">nw::demo::CommandListSwapper::Description</a> 67 </th> 68 <td>Command list swapper settings.</td> 69 </tr> </table> 70 </div> 71 </a> <a name="function" id="function"> 72 <h2>Member Functions</h2> 73 <div class="section"> 74 <table class="members"> 75 <tr> 76 <th class="category" colspan="3">Creation and Destruction</th> 77 </tr> 78 <tr> 79 <td width="100"> 80 <span class="static_style" title="static">S</span> </td> 81 <th> 82 <a href="../../../nw/demo/CommandListSwapper/Create.html"><CODE>Create</CODE></a> 83 </th> 84 <td>Creates a command list swapper.</td> 85 </tr> 86 <tr> 87 <td width="100"> </td> 88 <th> 89 <a href="../../../nw/demo/CommandListSwapper/Destroy.html"><CODE>Destroy</CODE></a> 90 </th> 91 <td>Destroys a command list swapper.</td> 92 </tr> 93 <tr> 94 <th class="category" colspan="3">Operation</th> 95 </tr> 96 <tr> 97 <td width="100"> </td> 98 <th> 99 <a href="../../../nw/demo/CommandListSwapper/Bind.html"><CODE>Bind</CODE></a> 100 </th> 101 <td>Binds a command list.</td> 102 </tr> 103 <tr> 104 <td width="100"> </td> 105 <th> 106 <a href="../../../nw/demo/CommandListSwapper/Run.html">Run</a> 107 </th> 108 <td>Runs a bound command list.</td> 109 </tr> 110 <tr> 111 <td width="100"> </td> 112 <th> 113 <a href="../../../nw/demo/CommandListSwapper/RunAsync.html">RunAsync</a> 114 </th> 115 <td>Asynchronously runs a bound command list.</td> 116 </tr> 117 <tr> 118 <td width="100"> </td> 119 <th> 120 <a href="../../../nw/demo/CommandListSwapper/WaitDone.html">WaitDone</a> 121 </th> 122 <td>Waits for completion of a command list executed asynchronously.</td> 123 </tr> 124 <tr> 125 <td width="100"> </td> 126 <th> 127 <a href="../../../nw/demo/CommandListSwapper/Swap.html"><CODE>Swap</CODE></a> 128 </th> 129 <td>Swaps command lists.</td> 130 </tr> 131 <tr> 132 <th class="category" colspan="3">GPU Profiling</th> 133 </tr> 134 <tr> 135 <td width="100"> </td> 136 <th> 137 <a href="../../../nw/demo/CommandListSwapper/ResetGpuProfiling.html">ResetGpuProfiling</a> 138 </th> 139 <td>Resets the GPU profiler.</td> 140 </tr> 141 <tr> 142 <td width="100"> </td> 143 <th> 144 <a href="../../../nw/demo/CommandListSwapper/AddGpuProfilingStartPoint.html">AddGpuProfilingStartPoint</a> 145 </th> 146 <td>Adds a command list GPU profile entry and sets the start point.</td> 147 </tr> 148 <tr> 149 <td width="100"> </td> 150 <th> 151 <a href="../../../nw/demo/CommandListSwapper/SetGpuProfilingEndPoint.html">SetGpuProfilingEndPoint</a> 152 </th> 153 <td>Sets the end point for the GPU profile entry.</td> 154 </tr> 155 <tr> 156 <td width="100"> </td> 157 <th> 158 <a href="../../../nw/demo/CommandListSwapper/GetGpuProfilingCostTime.html">GetGpuProfilingCostTime</a> 159 </th> 160 <td>Gets the measured execution time of the GPU profile entry.</td> 161 </tr> 162 <tr> 163 <td width="100"> </td> 164 <th> 165 <a href="../../../nw/demo/CommandListSwapper/GetGpuProfilingTotalCostTime.html">GetGpuProfilingTotalCostTime</a> 166 </th> 167 <td>Gets the total execution rime for the GPU profile entries.</td> 168 </tr> 169 <tr> 170 <th class="category" colspan="3">Set/Get</th> 171 </tr> 172 <tr> 173 <td width="100"> </td> 174 <th> 175 <a href="../../../nw/demo/CommandListSwapper/GetCommandListId.html">GetCommandListId</a> 176 </th> 177 <td>Gets the command list ID.</td> 178 </tr> 179 <tr> 180 <td width="100"> </td> 181 <th> 182 <a href="../../../nw/demo/CommandListSwapper/GetListCount.html">GetListCount</a> 183 </th> 184 <td>Gets the number of command lists.</td> 185 </tr> 186 <tr> 187 <td width="100"> </td> 188 <th> 189 <a href="../../../nw/demo/CommandListSwapper/GetCommandBufferSize.html">GetCommandBufferSize</a> 190 </th> 191 <td>Gets the size (in bytes) of data accumulated in the 3D command buffer.</td> 192 </tr> 193 <tr> 194 <td width="100"> </td> 195 <th> 196 <a href="../../../nw/demo/CommandListSwapper/GetReusableCommandBufferSize.html">GetReusableCommandBufferSize</a> 197 </th> 198 <td>Gets the size of the 3D command buffer for a command list that has been saved for re-use.</td> 199 </tr> 200 <tr> 201 <th class="category" colspan="3">Reuse of Commands</th> 202 </tr> 203 <tr> 204 <td width="100"> </td> 205 <th> 206 <a href="../../../nw/demo/CommandListSwapper/StartCommandSave.html">StartCommandSave</a> 207 </th> 208 <td>Starts the saving of commands for reuse.</td> 209 </tr> 210 <tr> 211 <td width="100"> </td> 212 <th> 213 <a href="../../../nw/demo/CommandListSwapper/EndCommandSave.html">EndCommandSave</a> 214 </th> 215 <td>Ends the saving of commands for reuse.</td> 216 </tr> 217 <tr> 218 <td width="100"> </td> 219 <th> 220 <a href="../../../nw/demo/CommandListSwapper/ReuseCommand.html">ReuseCommand</a> 221 </th> 222 <td>Reuses saved command.</td> 223 </tr> </table> 224 </div> 225 </a> 226 <hr><p>CONFIDENTIAL</p></body> 227</html> 228