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 <title>nngxCmdlistStorageRaw </title> 8 </head> 9 <body> 10 <h1><CODE>nngxCmdlistStorageRaw</CODE> Function</h1> 11 <h2>Syntax</h2> 12 <div class="section"> 13 <pre class="definition"> 14NNGX_APICALL void NNGX_APIENTRY nngxCmdlistStorageRaw( 15 <a href="../nngxCommandList/Overview.html">nngxCommandList</a> * cmdlist, 16 GLsizei bufsize, 17 GLvoid * commandbuffer, 18 GLsizei requestcount, 19 GLvoid * commandrequest 20); 21</pre> 22 </div> 23 <h2>Arguments</h2> 24 <div class="section"> 25 <table class="arguments"> 26 <thead> 27 <tr> 28 <td width="15" /> 29 <th>Name</th> 30 <td>Description</td> 31 </tr> 32 </thead> 33 <tr> 34 <td>in</td> 35 <th><CODE>cmdlist</CODE> </th> 36 <td>The target command list object.</td> 37 </tr> 38 <tr> 39 <td>in</td> 40 <th><CODE>bufsize</CODE> </th> 41 <td>Size of the 3D command buffer in bytes.</td> 42 </tr> 43 <tr> 44 <td>in</td> 45 <th><CODE>commandbuffer</CODE> </th> 46 <td>Pointer to the region to use as the 3D command buffer.</td> 47 </tr> 48 <tr> 49 <td>in</td> 50 <th><CODE>requestcount</CODE> </th> 51 <td>Number of command requests.</td> 52 </tr> 53 <tr> 54 <td>in</td> 55 <th><CODE>commandrequest</CODE> </th> 56 <td>Pointer to the region to use as the command request heap.</td> 57 </tr> </table> 58 </div> 59 <h2>Return Values</h2> 60 <div class="section">No values are returned. </div> 61 <h2>Description</h2> 62 <div class="section"> 63 <p>Allocates the data region for the specified command list.</p><p>This is the directly specified command list version of <CODE><a href="../nn_gx/nngxCmdlistStorage.html">nngxCmdlistStorage</a></CODE>. 64 </p><p>Whereas with <CODE><a href="../nn_gx/nngxCmdlistStorage.html">nngxCmdlistStorage</a></CODE>, an allocator is called inside the library to allocate a buffer region, but with this function, the buffer region is given directly as a function parameter. Be sure not to deallocate the buffer that is given here while the command list is still in use. You can use the <CODE><a href="../nn_gx_raw/nngxGetCommandRequestSizeRaw.html">nngxGetCommandRequestSizeRaw</a></CODE> function to get the size of area you need for the command request buffer. 65 </p><p> 66The buffer region specified with <CODE>commandbuffer</CODE> must be allocated in device memory, and must be specified with a 16-byte aligned address. There are no restrictions on the memory allocated for the buffer region specified with <CODE>commandrequest</CODE>, and the region must be specified with a 4-byte aligned address. 67 </p></div> 68 <h2>Revision History</h2> 69 <div class="section"> 70 <dl class="history"> 71 <dt>2012/06/14</dt> 72<dd>Added a note about the buffer region alignment conditions.<br /> 73 </dd> 74 <dt>2012/05/09</dt> 75 <dd>Initial version. <br /> 76 </dd> 77 </dl> 78 </div> 79 <hr><p>CONFIDENTIAL</p></body> 80</html>