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
|
<html>
<head>
<title>NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxBatchQueryDesc.h Source File</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="images/PhysXlogo.png" align="middle"> <br>
<center>
<a class="qindex" href="main.html">Main Page</a>
<a class="qindex" href="hierarchy.html">Class Hierarchy</a>
<a class="qindex" href="annotated.html">Compound List</a>
<a class="qindex" href="functions.html">Compound Members</a>
</center>
<hr class="second">
</div>
<!-- Generated by Doxygen 1.5.8 -->
<h1>PxBatchQueryDesc.h</h1><a href="PxBatchQueryDesc_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//</span>
<a name="l00002"></a>00002 <span class="comment">// Redistribution and use in source and binary forms, with or without</span>
<a name="l00003"></a>00003 <span class="comment">// modification, are permitted provided that the following conditions</span>
<a name="l00004"></a>00004 <span class="comment">// are met:</span>
<a name="l00005"></a>00005 <span class="comment">// * Redistributions of source code must retain the above copyright</span>
<a name="l00006"></a>00006 <span class="comment">// notice, this list of conditions and the following disclaimer.</span>
<a name="l00007"></a>00007 <span class="comment">// * Redistributions in binary form must reproduce the above copyright</span>
<a name="l00008"></a>00008 <span class="comment">// notice, this list of conditions and the following disclaimer in the</span>
<a name="l00009"></a>00009 <span class="comment">// documentation and/or other materials provided with the distribution.</span>
<a name="l00010"></a>00010 <span class="comment">// * Neither the name of NVIDIA CORPORATION nor the names of its</span>
<a name="l00011"></a>00011 <span class="comment">// contributors may be used to endorse or promote products derived</span>
<a name="l00012"></a>00012 <span class="comment">// from this software without specific prior written permission.</span>
<a name="l00013"></a>00013 <span class="comment">//</span>
<a name="l00014"></a>00014 <span class="comment">// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY</span>
<a name="l00015"></a>00015 <span class="comment">// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span>
<a name="l00016"></a>00016 <span class="comment">// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</span>
<a name="l00017"></a>00017 <span class="comment">// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR</span>
<a name="l00018"></a>00018 <span class="comment">// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</span>
<a name="l00019"></a>00019 <span class="comment">// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,</span>
<a name="l00020"></a>00020 <span class="comment">// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR</span>
<a name="l00021"></a>00021 <span class="comment">// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY</span>
<a name="l00022"></a>00022 <span class="comment">// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span>
<a name="l00023"></a>00023 <span class="comment">// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span>
<a name="l00024"></a>00024 <span class="comment">// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span>
<a name="l00025"></a>00025 <span class="comment">//</span>
<a name="l00026"></a>00026 <span class="comment">// Copyright (c) 2008-2018 NVIDIA Corporation. All rights reserved.</span>
<a name="l00027"></a>00027 <span class="comment">// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.</span>
<a name="l00028"></a>00028 <span class="comment">// Copyright (c) 2001-2004 NovodeX AG. All rights reserved. </span>
<a name="l00029"></a>00029
<a name="l00030"></a>00030
<a name="l00031"></a>00031 <span class="preprocessor">#ifndef PX_PHYSICS_NX_SCENEQUERYDESC</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#define PX_PHYSICS_NX_SCENEQUERYDESC</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00036"></a>00036 <span class="preprocessor">#include "<a class="code" href="PxPhysXConfig_8h.html">PxPhysXConfig.h</a>"</span>
<a name="l00037"></a>00037 <span class="preprocessor">#include "<a class="code" href="PxClient_8h.html">PxClient.h</a>"</span>
<a name="l00038"></a>00038 <span class="preprocessor">#include "<a class="code" href="PxFiltering_8h.html">PxFiltering.h</a>"</span>
<a name="l00039"></a>00039 <span class="preprocessor">#include "<a class="code" href="PxQueryFiltering_8h.html">PxQueryFiltering.h</a>"</span>
<a name="l00040"></a>00040 <span class="preprocessor">#include "<a class="code" href="PxAssert_8h.html">foundation/PxAssert.h</a>"</span>
<a name="l00041"></a>00041
<a name="l00042"></a>00042 <span class="preprocessor">#if !PX_DOXYGEN</span>
<a name="l00043"></a>00043 <span class="preprocessor"></span><span class="keyword">namespace </span>physx
<a name="l00044"></a>00044 {
<a name="l00045"></a>00045 <span class="preprocessor">#endif</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span>
<a name="l00047"></a>00047 <span class="keyword">struct </span><a class="code" href="structPxSweepHit.html" title="Stores results of sweep queries.">PxSweepHit</a>;
<a name="l00048"></a>00048 <span class="keyword">struct </span><a class="code" href="structPxRaycastHit.html" title="Stores results of raycast queries.">PxRaycastHit</a>;
<a name="l00049"></a>00049
<a name="l00055"></a><a class="code" href="structPxBatchQueryStatus.html">00055</a> <span class="keyword">struct </span><a class="code" href="group__foundation.html#gfd8f8779793627061774cfcfa1b9fbd7">PX_DEPRECATED</a> <a class="code" href="structPxBatchQueryStatus.html" title="Batched query status.">PxBatchQueryStatus</a>
<a name="l00056"></a>00056 {
<a name="l00057"></a><a class="code" href="structPxBatchQueryStatus.html#65079b6fb3edafc98c6101bd6bc9b306">00057</a> <span class="keyword">enum</span> <a class="code" href="structPxBatchQueryStatus.html#65079b6fb3edafc98c6101bd6bc9b306">Enum</a>
<a name="l00058"></a>00058 {
<a name="l00062"></a><a class="code" href="structPxBatchQueryStatus.html#65079b6fb3edafc98c6101bd6bc9b3066cab806a7bb52b69507f97eae86c0697">00062</a> ePENDING = 0,
<a name="l00063"></a>00063
<a name="l00067"></a><a class="code" href="structPxBatchQueryStatus.html#65079b6fb3edafc98c6101bd6bc9b3061fccdd0d7e1e3782290fb0f2f1685315">00067</a> eSUCCESS,
<a name="l00068"></a>00068
<a name="l00072"></a><a class="code" href="structPxBatchQueryStatus.html#65079b6fb3edafc98c6101bd6bc9b306068da38266149631d5852c46eb0ae59b">00072</a> eOVERFLOW
<a name="l00073"></a>00073 };
<a name="l00074"></a>00074 };
<a name="l00075"></a>00075
<a name="l00081"></a>00081 <span class="keyword">template</span><<span class="keyword">typename</span> HitType>
<a name="l00082"></a><a class="code" href="structPxBatchQueryResult.html">00082</a> <span class="keyword">struct </span><a class="code" href="group__foundation.html#gfd8f8779793627061774cfcfa1b9fbd7">PX_DEPRECATED</a> <a class="code" href="structPxBatchQueryResult.html" title="Generic struct for receiving results of single query in a batch. Gets templated on...">PxBatchQueryResult</a>
<a name="l00083"></a>00083 {
<a name="l00084"></a><a class="code" href="structPxBatchQueryResult.html#a91f15d629285e2471fcbb039af1d17b">00084</a> HitType block;
<a name="l00085"></a><a class="code" href="structPxBatchQueryResult.html#4b4cabd4f1a5befef4a55048854d1a68">00085</a> HitType* touches;
<a name="l00086"></a>00086
<a name="l00087"></a><a class="code" href="structPxBatchQueryResult.html#ac884d117477c6f480d9ceb53d229ead">00087</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> nbTouches;
<a name="l00088"></a><a class="code" href="structPxBatchQueryResult.html#1fc4664be9c55e563e5ba65b0071ee89">00088</a> <span class="keywordtype">void</span>* userData;
<a name="l00089"></a><a class="code" href="structPxBatchQueryResult.html#db01163e07196e8a4867f4b5d4c8752d">00089</a> <a class="code" href="namespacephysx.html#3849f86abc21d3a58949481603fe8309">PxU8</a> queryStatus;
<a name="l00090"></a><a class="code" href="structPxBatchQueryResult.html#35efe4f4170d5b2ee88a42f1618644d4">00090</a> <span class="keywordtype">bool</span> hasBlock;
<a name="l00091"></a><a class="code" href="structPxBatchQueryResult.html#d0b4a79dc77732dc7bbe5c56f50bd4a6">00091</a> <a class="code" href="namespacephysx.html#9caf1cbcda071b6d2a9c069faa99da23">PxU16</a> pad;
<a name="l00092"></a>00092
<a name="l00094"></a><a class="code" href="structPxBatchQueryResult.html#c6a60639763e94b658edf5c3eb4c21aa">00094</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> <a class="code" href="structPxBatchQueryResult.html#c6a60639763e94b658edf5c3eb4c21aa" title="Computes the number of any hits in this result, blocking or touching.">getNbAnyHits</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> nbTouches + (hasBlock ? 1 : 0); }
<a name="l00095"></a>00095
<a name="l00097"></a><a class="code" href="structPxBatchQueryResult.html#7ec0ebeebc65930db22f2c2cdd7af6ce">00097</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keyword">const</span> HitType& <a class="code" href="structPxBatchQueryResult.html#7ec0ebeebc65930db22f2c2cdd7af6ce" title="Convenience iterator used to access any hits in this result, blocking or touching...">getAnyHit</a>(<span class="keyword">const</span> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> index)<span class="keyword"> const </span>{ <a class="code" href="group__foundation.html#g4a83a657390b324a460f14684e5accee">PX_ASSERT</a>(index < nbTouches + (hasBlock ? 1 : 0));
<a name="l00098"></a>00098 <span class="keywordflow">return</span> index < nbTouches ? touches[index] : block; }
<a name="l00099"></a>00099 };
<a name="l00100"></a>00100
<a name="l00102"></a><a class="code" href="group__physics.html#g5d8a1dc3627cf1442f40d91a5ec6b4e3">00102</a> <span class="keyword">typedef</span> <a class="code" href="group__foundation.html#gfd8f8779793627061774cfcfa1b9fbd7">PX_DEPRECATED</a> <a class="code" href="structPxBatchQueryResult.html" title="Generic struct for receiving results of single query in a batch. Gets templated on...">PxBatchQueryResult<PxRaycastHit></a> <a class="code" href="group__physics.html#g5d8a1dc3627cf1442f40d91a5ec6b4e3" title="Convenience typedef for the result of a batched raycast query.">PxRaycastQueryResult</a>;
<a name="l00103"></a>00103
<a name="l00105"></a><a class="code" href="group__physics.html#g89ec6835295298336ceaca7069ba96e4">00105</a> <span class="keyword">typedef</span> <a class="code" href="group__foundation.html#gfd8f8779793627061774cfcfa1b9fbd7">PX_DEPRECATED</a> <a class="code" href="structPxBatchQueryResult.html" title="Generic struct for receiving results of single query in a batch. Gets templated on...">PxBatchQueryResult<PxSweepHit></a> <a class="code" href="group__physics.html#g89ec6835295298336ceaca7069ba96e4" title="Convenience typedef for the result of a batched sweep query.">PxSweepQueryResult</a>;
<a name="l00106"></a>00106
<a name="l00108"></a><a class="code" href="group__physics.html#ge0a66b10a979f7449050bc97669530b2">00108</a> <span class="keyword">typedef</span> <a class="code" href="group__foundation.html#gfd8f8779793627061774cfcfa1b9fbd7">PX_DEPRECATED</a> <a class="code" href="structPxBatchQueryResult.html" title="Generic struct for receiving results of single query in a batch. Gets templated on...">PxBatchQueryResult<PxOverlapHit></a> <a class="code" href="group__physics.html#ge0a66b10a979f7449050bc97669530b2" title="Convenience typedef for the result of a batched overlap query.">PxOverlapQueryResult</a>;
<a name="l00109"></a>00109
<a name="l00117"></a><a class="code" href="structPxBatchQueryMemory.html">00117</a> <span class="keyword">struct </span><a class="code" href="group__foundation.html#gfd8f8779793627061774cfcfa1b9fbd7">PX_DEPRECATED</a> <a class="code" href="structPxBatchQueryMemory.html" title="Struct for PxBatchQuery memory pointers.">PxBatchQueryMemory</a>
<a name="l00118"></a>00118 {
<a name="l00126"></a><a class="code" href="structPxBatchQueryMemory.html#194b1ad50e68760d9499e253151c7d31">00126</a> <a class="code" href="group__physics.html#g5d8a1dc3627cf1442f40d91a5ec6b4e3" title="Convenience typedef for the result of a batched raycast query.">PxRaycastQueryResult</a>* userRaycastResultBuffer;
<a name="l00127"></a>00127
<a name="l00134"></a><a class="code" href="structPxBatchQueryMemory.html#91e8d574145421cd4d722d1a3d3aa189">00134</a> <a class="code" href="structPxRaycastHit.html" title="Stores results of raycast queries.">PxRaycastHit</a>* userRaycastTouchBuffer;
<a name="l00135"></a>00135
<a name="l00143"></a><a class="code" href="structPxBatchQueryMemory.html#21e15901b0b7e88fe8f59ea06dcff69e">00143</a> <a class="code" href="group__physics.html#g89ec6835295298336ceaca7069ba96e4" title="Convenience typedef for the result of a batched sweep query.">PxSweepQueryResult</a>* userSweepResultBuffer;
<a name="l00144"></a>00144
<a name="l00151"></a><a class="code" href="structPxBatchQueryMemory.html#f38a1a9598d64f6dedd9db17308e0cb8">00151</a> <a class="code" href="structPxSweepHit.html" title="Stores results of sweep queries.">PxSweepHit</a>* userSweepTouchBuffer;
<a name="l00152"></a>00152
<a name="l00160"></a><a class="code" href="structPxBatchQueryMemory.html#7c54ac68c7049897accaa4520c418d1e">00160</a> <a class="code" href="group__physics.html#ge0a66b10a979f7449050bc97669530b2" title="Convenience typedef for the result of a batched overlap query.">PxOverlapQueryResult</a>* userOverlapResultBuffer;
<a name="l00161"></a>00161
<a name="l00168"></a><a class="code" href="structPxBatchQueryMemory.html#1240fda3a2829ac7502a513366bc692f">00168</a> <a class="code" href="structPxOverlapHit.html" title="Stores results of overlap queries.">PxOverlapHit</a>* userOverlapTouchBuffer;
<a name="l00169"></a>00169
<a name="l00171"></a><a class="code" href="structPxBatchQueryMemory.html#1e0836786e4a016c11d45f4c60d6d715">00171</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> raycastTouchBufferSize;
<a name="l00172"></a>00172
<a name="l00174"></a><a class="code" href="structPxBatchQueryMemory.html#57b0f16109279424ab23826905086a10">00174</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> sweepTouchBufferSize;
<a name="l00175"></a>00175
<a name="l00177"></a><a class="code" href="structPxBatchQueryMemory.html#616e1cecbc5a60da039420f47177fdbb">00177</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> overlapTouchBufferSize;
<a name="l00178"></a>00178
<a name="l00180"></a><a class="code" href="structPxBatchQueryMemory.html#2ad4bb92877ec0b806899ab27d961e4c">00180</a> <a class="code" href="group__foundation.html#g6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> <a class="code" href="structPxBatchQueryMemory.html#2ad4bb92877ec0b806899ab27d961e4c">getMaxRaycastsPerExecute</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> raycastResultBufferSize; }
<a name="l00181"></a>00181
<a name="l00183"></a><a class="code" href="structPxBatchQueryMemory.html#1ed285c23ac6bf41370f5e46cdd433b5">00183</a> <a class="code" href="group__foundation.html#g6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> <a class="code" href="structPxBatchQueryMemory.html#1ed285c23ac6bf41370f5e46cdd433b5">getMaxSweepsPerExecute</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> sweepResultBufferSize; }
<a name="l00184"></a>00184
<a name="l00186"></a><a class="code" href="structPxBatchQueryMemory.html#e523dd2ef2c496b345025b4590085e6c">00186</a> <a class="code" href="group__foundation.html#g6a774eed3cad34b0f636332a3d28c6bb">PX_FORCE_INLINE</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> <a class="code" href="structPxBatchQueryMemory.html#e523dd2ef2c496b345025b4590085e6c">getMaxOverlapsPerExecute</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> overlapResultBufferSize; }
<a name="l00187"></a>00187
<a name="l00188"></a><a class="code" href="structPxBatchQueryMemory.html#048b4eea81e88e96e8c7b74445a1020d">00188</a> <a class="code" href="structPxBatchQueryMemory.html" title="Struct for PxBatchQuery memory pointers.">PxBatchQueryMemory</a>(<a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> raycastResultBufferSize_, <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> sweepResultBufferSize_, <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> overlapResultBufferSize_) :
<a name="l00189"></a>00189 userRaycastResultBuffer (NULL),
<a name="l00190"></a>00190 userRaycastTouchBuffer (NULL),
<a name="l00191"></a>00191 userSweepResultBuffer (NULL),
<a name="l00192"></a>00192 userSweepTouchBuffer (NULL),
<a name="l00193"></a>00193 userOverlapResultBuffer (NULL),
<a name="l00194"></a>00194 userOverlapTouchBuffer (NULL),
<a name="l00195"></a>00195 raycastTouchBufferSize (0),
<a name="l00196"></a>00196 sweepTouchBufferSize (0),
<a name="l00197"></a>00197 overlapTouchBufferSize (0),
<a name="l00198"></a>00198 raycastResultBufferSize (raycastResultBufferSize_),
<a name="l00199"></a>00199 sweepResultBufferSize (sweepResultBufferSize_),
<a name="l00200"></a>00200 overlapResultBufferSize (overlapResultBufferSize_)
<a name="l00201"></a>00201 {
<a name="l00202"></a>00202 }
<a name="l00203"></a>00203
<a name="l00204"></a>00204 <span class="keyword">protected</span>:
<a name="l00205"></a><a class="code" href="structPxBatchQueryMemory.html#3067c6b6dab1322f7b57276cafe6a728">00205</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> raycastResultBufferSize;
<a name="l00206"></a><a class="code" href="structPxBatchQueryMemory.html#fb455a9a8278054c6408b9a4ed4178bb">00206</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> sweepResultBufferSize;
<a name="l00207"></a><a class="code" href="structPxBatchQueryMemory.html#286b0f9772987d23cc48ec93e6685e0c">00207</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> overlapResultBufferSize;
<a name="l00208"></a>00208 };
<a name="l00209"></a>00209
<a name="l00217"></a><a class="code" href="classPxBatchQueryDesc.html">00217</a> <span class="keyword">class </span><a class="code" href="group__foundation.html#gfd8f8779793627061774cfcfa1b9fbd7">PX_DEPRECATED</a> <a class="code" href="classPxBatchQueryDesc.html" title="Descriptor class for PxBatchQuery.">PxBatchQueryDesc</a>
<a name="l00218"></a>00218 {
<a name="l00219"></a>00219 <span class="keyword">public</span>:
<a name="l00220"></a>00220
<a name="l00230"></a><a class="code" href="classPxBatchQueryDesc.html#5f0ec12e1149c7960b9360c53615853c">00230</a> <span class="keywordtype">void</span>* filterShaderData;
<a name="l00231"></a>00231
<a name="l00239"></a><a class="code" href="classPxBatchQueryDesc.html#35d9cb33ded71261de0c7695d75ecba9">00239</a> <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> filterShaderDataSize;
<a name="l00240"></a>00240
<a name="l00246"></a><a class="code" href="classPxBatchQueryDesc.html#f116e4058958b7c747dfd008317764ba">00246</a> <a class="code" href="group__scenequery.html#ga1264802560d96e1740850b2e1a9856b" title="Batched query pre-filter shader.">PxBatchQueryPreFilterShader</a> preFilterShader;
<a name="l00247"></a>00247
<a name="l00253"></a><a class="code" href="classPxBatchQueryDesc.html#1eae24bb23c561c4a656d7234d9d2e5e">00253</a> <a class="code" href="group__scenequery.html#g043a6549307b8fd63c96f48edafddad0" title="Batched query post-filter shader.">PxBatchQueryPostFilterShader</a> postFilterShader;
<a name="l00254"></a>00254
<a name="l00262"></a><a class="code" href="classPxBatchQueryDesc.html#9bca9313c79171e15a94615958672848">00262</a> <a class="code" href="group__foundation.html#gfd8f8779793627061774cfcfa1b9fbd7">PX_DEPRECATED</a> <a class="code" href="PxClient_8h.html#cb0e5a85de6c250f2a54db46e3aa0a12" title="An ID to identify different clients for multiclient support.">PxClientID</a> ownerClient;
<a name="l00263"></a>00263
<a name="l00269"></a><a class="code" href="classPxBatchQueryDesc.html#9dff8b59d67283672d41c6aa6ea7c882">00269</a> <a class="code" href="structPxBatchQueryMemory.html" title="Struct for PxBatchQuery memory pointers.">PxBatchQueryMemory</a> queryMemory;
<a name="l00270"></a>00270
<a name="l00283"></a>00283 <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="classPxBatchQueryDesc.html" title="Descriptor class for PxBatchQuery.">PxBatchQueryDesc</a>(<a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> maxRaycastsPerExecute, <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> maxSweepsPerExecute, <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> maxOverlapsPerExecute);
<a name="l00284"></a>00284 <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">bool</span> isValid() <span class="keyword">const</span>;
<a name="l00285"></a>00285 };
<a name="l00286"></a>00286
<a name="l00287"></a>00287
<a name="l00288"></a><a class="code" href="group__physics.html#g7c50eeff3e586897d4441a18e43b7237">00288</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <a class="code" href="group__physics.html#g7c50eeff3e586897d4441a18e43b7237" title="Construct a batch query with specified maximum number of queries per batch.">PxBatchQueryDesc::PxBatchQueryDesc</a>(<a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> maxRaycastsPerExecute, <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> maxSweepsPerExecute, <a class="code" href="namespacephysx.html#9b7fbd746d18bf5b6545713a8d818f41">PxU32</a> maxOverlapsPerExecute) :
<a name="l00289"></a>00289 filterShaderData (NULL),
<a name="l00290"></a>00290 filterShaderDataSize (0),
<a name="l00291"></a>00291 preFilterShader (NULL),
<a name="l00292"></a>00292 postFilterShader (NULL),
<a name="l00293"></a>00293 ownerClient (<a class="code" href="PxClient_8h.html#8bc840c3fd493df8b6072d055d050fb4" title="The predefined default PxClientID value.">PX_DEFAULT_CLIENT</a>),
<a name="l00294"></a>00294 queryMemory (maxRaycastsPerExecute, maxSweepsPerExecute, maxOverlapsPerExecute)
<a name="l00295"></a>00295 {
<a name="l00296"></a>00296 }
<a name="l00297"></a>00297
<a name="l00298"></a>00298
<a name="l00299"></a><a class="code" href="group__physics.html#g6c065d106bbbace6f2cc1d6f321af6bb">00299</a> <a class="code" href="group__foundation.html#gcb03347b642a2a5bdea1f9b305a6fbec">PX_INLINE</a> <span class="keywordtype">bool</span> <a class="code" href="group__physics.html#g6c065d106bbbace6f2cc1d6f321af6bb">PxBatchQueryDesc::isValid</a>()<span class="keyword"> const</span>
<a name="l00300"></a>00300 <span class="keyword"></span>{
<a name="l00301"></a>00301 <span class="keywordflow">if</span> ( ((<a class="code" href="classPxBatchQueryDesc.html#35d9cb33ded71261de0c7695d75ecba9" title="Size (in bytes) of the shared global filter data filterShaderData.">filterShaderDataSize</a> == 0) && (<a class="code" href="classPxBatchQueryDesc.html#5f0ec12e1149c7960b9360c53615853c" title="Shared global filter data which will get passed into the filter shader.">filterShaderData</a> != NULL)) ||
<a name="l00302"></a>00302 ((<a class="code" href="classPxBatchQueryDesc.html#35d9cb33ded71261de0c7695d75ecba9" title="Size (in bytes) of the shared global filter data filterShaderData.">filterShaderDataSize</a> > 0) && (<a class="code" href="classPxBatchQueryDesc.html#5f0ec12e1149c7960b9360c53615853c" title="Shared global filter data which will get passed into the filter shader.">filterShaderData</a> == NULL)) )
<a name="l00303"></a>00303 <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00304"></a>00304
<a name="l00305"></a>00305 <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00306"></a>00306 }
<a name="l00307"></a>00307
<a name="l00308"></a>00308 <span class="preprocessor">#if !PX_DOXYGEN</span>
<a name="l00309"></a>00309 <span class="preprocessor"></span>} <span class="comment">// namespace physx</span>
<a name="l00310"></a>00310 <span class="preprocessor">#endif</span>
<a name="l00311"></a>00311 <span class="preprocessor"></span>
<a name="l00313"></a>00313 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr style="width: 100%; height: 2px;"><br>
Copyright © 2008-2018 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>
</body>
</html>
|