1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
|
<html>
<head>
<title>NVIDIA(R) Flow(R) 1.0.1 API Reference: NvFlowGridEmitCustom</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK HREF="NVIDIA.css" REL="stylesheet" TYPE="text/css">
</head>
<body bgcolor="#FFFFFF">
<div id="header">
<hr class="first">
<img alt="" src="nvflow_logo.png">
<br>
<hr class="second">
</div>
<!-- Generated by Doxygen 1.5.8 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="main.html"><span>Main Page</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
</div>
<div class="contents">
<h1>NvFlowGridEmitCustom</h1><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Data Structures</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_nv_flow_grid_emit_custom_alloc_params.html">NvFlowGridEmitCustomAllocParams</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Necessary parameters/resources for custom grid block allocation. <a href="struct_nv_flow_grid_emit_custom_alloc_params.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_nv_flow_grid_emit_custom_emit_layer_params.html">NvFlowGridEmitCustomEmitLayerParams</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Necessary parameters/resources for custom emit operations. <a href="struct_nv_flow_grid_emit_custom_emit_layer_params.html#_details">More...</a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="struct_nv_flow_grid_emit_custom_emit_params.html">NvFlowGridEmitCustomEmitParams</a></td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Handle for requesting per layer emitter data. <a href="struct_nv_flow_grid_emit_custom_emit_params.html#_details">More...</a><br></td></tr>
<tr><td colspan="2"><br><h2>Typedefs</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group___nv_flow_grid_emit_custom.html#g38b5ccaa7856cabe28d40f84e8770bcf">NvFlowGridEmitCustomAllocFunc</a> )(void *userdata, const <a class="el" href="struct_nv_flow_grid_emit_custom_alloc_params.html">NvFlowGridEmitCustomAllocParams</a> *params)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="group___nv_flow_grid_emit_custom.html#g14fcc770bd5a7d384ba9fdf0398842e0">NvFlowGridEmitCustomEmitFunc</a> )(void *userdata, <a class="el" href="_nv_flow_types_8h.html#3ecaefc2ddcf5a935631db32d05226b1">NvFlowUint</a> *dataFrontIdx, const <a class="el" href="struct_nv_flow_grid_emit_custom_emit_params.html">NvFlowGridEmitCustomEmitParams</a> *params)</td></tr>
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___nv_flow_grid_emit_custom.html#gcd6be5226c3f26e35944900e35e4849b">NvFlowGridEmitCustomGetLayerParams</a> (const <a class="el" href="struct_nv_flow_grid_emit_custom_emit_params.html">NvFlowGridEmitCustomEmitParams</a> *emitParams, <a class="el" href="_nv_flow_types_8h.html#3ecaefc2ddcf5a935631db32d05226b1">NvFlowUint</a> layerIdx, <a class="el" href="struct_nv_flow_grid_emit_custom_emit_layer_params.html">NvFlowGridEmitCustomEmitLayerParams</a> *emitLayerParams)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___nv_flow_grid_emit_custom.html#g4d0613fb4439eac8800d7b011f260524">NvFlowGridEmitCustomRegisterAllocFunc</a> (NvFlowGrid *grid, <a class="el" href="group___nv_flow_grid_emit_custom.html#g38b5ccaa7856cabe28d40f84e8770bcf">NvFlowGridEmitCustomAllocFunc</a> func, void *userdata)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="group___nv_flow_grid_emit_custom.html#g436ca3733a63a4a38ae4e0cbe8667a39">NvFlowGridEmitCustomRegisterEmitFunc</a> (NvFlowGrid *grid, <a class="el" href="group___nv_flow_grid.html#gf05b2ac6de5b1cfbe5cdaade35b61d9e">NvFlowGridTextureChannel</a> channel, <a class="el" href="group___nv_flow_grid_emit_custom.html#g14fcc770bd5a7d384ba9fdf0398842e0">NvFlowGridEmitCustomEmitFunc</a> func, void *userdata)</td></tr>
</table>
<hr><h2>Typedef Documentation</h2>
<a class="anchor" name="g38b5ccaa7856cabe28d40f84e8770bcf"></a><!-- doxytag: member="NvFlow.h::NvFlowGridEmitCustomAllocFunc" ref="g38b5ccaa7856cabe28d40f84e8770bcf" args=")(void *userdata, const NvFlowGridEmitCustomAllocParams *params)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef void(* <a class="el" href="group___nv_flow_grid_emit_custom.html#g38b5ccaa7856cabe28d40f84e8770bcf">NvFlowGridEmitCustomAllocFunc</a>)(void *userdata, const <a class="el" href="struct_nv_flow_grid_emit_custom_alloc_params.html">NvFlowGridEmitCustomAllocParams</a> *params) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<a class="anchor" name="g14fcc770bd5a7d384ba9fdf0398842e0"></a><!-- doxytag: member="NvFlow.h::NvFlowGridEmitCustomEmitFunc" ref="g14fcc770bd5a7d384ba9fdf0398842e0" args=")(void *userdata, NvFlowUint *dataFrontIdx, const NvFlowGridEmitCustomEmitParams *params)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef void(* <a class="el" href="group___nv_flow_grid_emit_custom.html#g14fcc770bd5a7d384ba9fdf0398842e0">NvFlowGridEmitCustomEmitFunc</a>)(void *userdata, <a class="el" href="_nv_flow_types_8h.html#3ecaefc2ddcf5a935631db32d05226b1">NvFlowUint</a> *dataFrontIdx, const <a class="el" href="struct_nv_flow_grid_emit_custom_emit_params.html">NvFlowGridEmitCustomEmitParams</a> *params) </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
</div>
</div><p>
<hr><h2>Function Documentation</h2>
<a class="anchor" name="gcd6be5226c3f26e35944900e35e4849b"></a><!-- doxytag: member="NvFlow.h::NvFlowGridEmitCustomGetLayerParams" ref="gcd6be5226c3f26e35944900e35e4849b" args="(const NvFlowGridEmitCustomEmitParams *emitParams, NvFlowUint layerIdx, NvFlowGridEmitCustomEmitLayerParams *emitLayerParams)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void NvFlowGridEmitCustomGetLayerParams </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="struct_nv_flow_grid_emit_custom_emit_params.html">NvFlowGridEmitCustomEmitParams</a> * </td>
<td class="paramname"> <em>emitParams</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="_nv_flow_types_8h.html#3ecaefc2ddcf5a935631db32d05226b1">NvFlowUint</a> </td>
<td class="paramname"> <em>layerIdx</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="struct_nv_flow_grid_emit_custom_emit_layer_params.html">NvFlowGridEmitCustomEmitLayerParams</a> * </td>
<td class="paramname"> <em>emitLayerParams</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Get per layer custom emit parameters, should only be called inside the custom emit callback.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>emitParams</em> </td><td>The custom emit parameters. </td></tr>
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>layerIdx</em> </td><td>The layerIdx to fetch, should be least than emitParams->numLayers. </td></tr>
<tr><td valign="top"><tt>[out]</tt> </td><td valign="top"><em>emitLayerParams</em> </td><td>Pointer to write parameters to. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="g4d0613fb4439eac8800d7b011f260524"></a><!-- doxytag: member="NvFlow.h::NvFlowGridEmitCustomRegisterAllocFunc" ref="g4d0613fb4439eac8800d7b011f260524" args="(NvFlowGrid *grid, NvFlowGridEmitCustomAllocFunc func, void *userdata)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void NvFlowGridEmitCustomRegisterAllocFunc </td>
<td>(</td>
<td class="paramtype">NvFlowGrid * </td>
<td class="paramname"> <em>grid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group___nv_flow_grid_emit_custom.html#g38b5ccaa7856cabe28d40f84e8770bcf">NvFlowGridEmitCustomAllocFunc</a> </td>
<td class="paramname"> <em>func</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"> <em>userdata</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets custom allocation callback.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>grid</em> </td><td>The grid to use the callback. </td></tr>
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>func</em> </td><td>The callback function. </td></tr>
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>userdata</em> </td><td>Pointer to provide to the callback function during execution. </td></tr>
</table>
</dl>
</div>
</div><p>
<a class="anchor" name="g436ca3733a63a4a38ae4e0cbe8667a39"></a><!-- doxytag: member="NvFlow.h::NvFlowGridEmitCustomRegisterEmitFunc" ref="g436ca3733a63a4a38ae4e0cbe8667a39" args="(NvFlowGrid *grid, NvFlowGridTextureChannel channel, NvFlowGridEmitCustomEmitFunc func, void *userdata)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void NvFlowGridEmitCustomRegisterEmitFunc </td>
<td>(</td>
<td class="paramtype">NvFlowGrid * </td>
<td class="paramname"> <em>grid</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group___nv_flow_grid.html#gf05b2ac6de5b1cfbe5cdaade35b61d9e">NvFlowGridTextureChannel</a> </td>
<td class="paramname"> <em>channel</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="group___nv_flow_grid_emit_custom.html#g14fcc770bd5a7d384ba9fdf0398842e0">NvFlowGridEmitCustomEmitFunc</a> </td>
<td class="paramname"> <em>func</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"> <em>userdata</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets custom emit callback for given simulation channel.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>grid</em> </td><td>The Flow grid to use the callback. </td></tr>
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>channel</em> </td><td>The simulation channel for this callback. </td></tr>
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>func</em> </td><td>The callback function. </td></tr>
<tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>userdata</em> </td><td>Pointer to provide to the callback function during execution. </td></tr>
</table>
</dl>
</div>
</div><p>
</div>
<!-- start footer part -->
<div class="footer">
Copyright © 2014-2016 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a>
</div>
</body>
</html>
|