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
|
<html>
<head>
<title>sdk/globals/include/NvBlastGlobals.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="blast_logo.png">
<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">Class List</a>
<a class="qindex" href="functions.html">Class Members</a>
</center>
<hr class="second">
</div>
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_nv_blast_globals_8h_source.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="headertitle">
<div class="title">NvBlastGlobals.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="_nv_blast_globals_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// This code contains NVIDIA Confidential Information and is disclosed to you</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">// under a form of NVIDIA software license agreement provided separately to you.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">//</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">// Notice</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">// NVIDIA Corporation and its licensors retain all intellectual property and</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">// proprietary rights in and to this software and related documentation and</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// any modifications thereto. Any use, reproduction, disclosure, or</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">// distribution of this software and related documentation without an express</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">// license agreement from NVIDIA Corporation is strictly prohibited.</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">//</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT,</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">//</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">// Information and code furnished is believed to be accurate and reliable.</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">// information or for any infringement of patents or other rights of third parties that may</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">// result from its use. No license is granted by implication or otherwise under any patent</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment">// or patent rights of NVIDIA Corporation. Details are subject to change without notice.</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment">// This code supersedes and replaces all information previously supplied.</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment">// NVIDIA Corporation products are not authorized for use as critical</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment">// components in life support devices or systems without express written approval of</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment">// NVIDIA Corporation.</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment">//</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment">// Copyright (c) 2016-2020 NVIDIA Corporation. All rights reserved.</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#ifndef NVBLASTGLOBALS_H</span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#define NVBLASTGLOBALS_H</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="preprocessor">#include <new></span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="preprocessor">#include "<a class="code" href="_nv_blast_types_8h.html">NvBlastTypes.h</a>"</span></div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> </div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="keyword">namespace </span><a class="code" href="namespace_nv.html">Nv</a></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> {</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keyword">namespace </span>Blast</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> {</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> </div><div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="class_nv_1_1_blast_1_1_allocator_callback.html"> 45</a></span> <span class="keyword">class </span><a class="code" href="class_nv_1_1_blast_1_1_allocator_callback.html">AllocatorCallback</a></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> {</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="class_nv_1_1_blast_1_1_allocator_callback.html#a5770e424c2ae2ca2bb2db50e332f3406"> 51</a></span>  <span class="keyword">virtual</span> <a class="code" href="class_nv_1_1_blast_1_1_allocator_callback.html#a5770e424c2ae2ca2bb2db50e332f3406">~AllocatorCallback</a>()</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  {</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  }</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span>* <a class="code" href="class_nv_1_1_blast_1_1_allocator_callback.html#ae0303f5b6c3993251bdf790f43ef4e90">allocate</a>(<span class="keywordtype">size_t</span> size, <span class="keyword">const</span> <span class="keywordtype">char</span>* typeName, <span class="keyword">const</span> <span class="keywordtype">char</span>* filename, <span class="keywordtype">int</span> line) = 0;</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> </div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="class_nv_1_1_blast_1_1_allocator_callback.html#aaaca2075d5aed1f8d276f5ecf090bc72">deallocate</a>(<span class="keywordtype">void</span>* ptr) = 0;</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> };</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> </div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> </div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="struct_nv_1_1_blast_1_1_error_code.html"> 88</a></span> <span class="keyword">struct </span><a class="code" href="struct_nv_1_1_blast_1_1_error_code.html">ErrorCode</a></div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span> {</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="struct_nv_1_1_blast_1_1_error_code.html#a626314fe23bf1efd003362a7b74523ab"> 90</a></span>  <span class="keyword">enum</span> <a class="code" href="struct_nv_1_1_blast_1_1_error_code.html#a626314fe23bf1efd003362a7b74523ab">Enum</a></div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  {</div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="struct_nv_1_1_blast_1_1_error_code.html#a626314fe23bf1efd003362a7b74523aba0e418ff07f71a7bb14012a91c882554b"> 92</a></span>  eNO_ERROR = 0,</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> </div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="struct_nv_1_1_blast_1_1_error_code.html#a626314fe23bf1efd003362a7b74523aba55eb81168a3b4017418d0606501290ba"> 95</a></span>  eDEBUG_INFO = 1,</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> </div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="struct_nv_1_1_blast_1_1_error_code.html#a626314fe23bf1efd003362a7b74523aba88ddbb0adcd520fd128e19973afd5d77"> 98</a></span>  eDEBUG_WARNING = 2,</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> </div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="struct_nv_1_1_blast_1_1_error_code.html#a626314fe23bf1efd003362a7b74523abaec8c84e7ac93ddce73241014c574c771"> 101</a></span>  eINVALID_PARAMETER = 4,</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span> </div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="struct_nv_1_1_blast_1_1_error_code.html#a626314fe23bf1efd003362a7b74523abaede638d04bfee0ec0dfe0c155cb48fb6"> 104</a></span>  eINVALID_OPERATION = 8,</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span> </div><div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="struct_nv_1_1_blast_1_1_error_code.html#a626314fe23bf1efd003362a7b74523aba963775dfd66699f8f657b0d70935eb1e"> 107</a></span>  eOUT_OF_MEMORY = 16,</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> </div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="struct_nv_1_1_blast_1_1_error_code.html#a626314fe23bf1efd003362a7b74523aba019ab0e8fa80ab359838e3afa6bedd7a"> 112</a></span>  eINTERNAL_ERROR = 32,</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span> </div><div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="struct_nv_1_1_blast_1_1_error_code.html#a626314fe23bf1efd003362a7b74523ababdc867619281f022cc360e8e9964cecb"> 115</a></span>  eABORT = 64,</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span> </div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="struct_nv_1_1_blast_1_1_error_code.html#a626314fe23bf1efd003362a7b74523aba8bde8ff474e2a74ccb5de49c316c313a"> 118</a></span>  ePERF_WARNING = 128,</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span> </div><div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="struct_nv_1_1_blast_1_1_error_code.html#a626314fe23bf1efd003362a7b74523aba3161b74e1d5767417c6b3dac7c05f6fe"> 121</a></span>  eMASK_ALL = -1</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  };</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span> };</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span> </div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> </div><div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="class_nv_1_1_blast_1_1_error_callback.html"> 131</a></span> <span class="keyword">class </span><a class="code" href="class_nv_1_1_blast_1_1_error_callback.html">ErrorCallback</a></div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> {</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> <span class="keyword">public</span>:</div><div class="line"><a name="l00134"></a><span class="lineno"><a class="line" href="class_nv_1_1_blast_1_1_error_callback.html#a2c00a6e93b1b9f6c6914497c9d9fc2e0"> 134</a></span>  <span class="keyword">virtual</span> <a class="code" href="class_nv_1_1_blast_1_1_error_callback.html#a2c00a6e93b1b9f6c6914497c9d9fc2e0">~ErrorCallback</a>()</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  {</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  }</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> </div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  <span class="keyword">virtual</span> <span class="keywordtype">void</span> reportError(<a class="code" href="struct_nv_1_1_blast_1_1_error_code.html#a626314fe23bf1efd003362a7b74523ab">ErrorCode::Enum</a> code, <span class="keyword">const</span> <span class="keywordtype">char</span>* message, <span class="keyword">const</span> <span class="keywordtype">char</span>* file, <span class="keywordtype">int</span> line) = 0;</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span> };</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span> </div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span> </div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span> } <span class="comment">// namespace Blast</span></div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span> } <span class="comment">// namespace Nv</span></div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span> </div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span> </div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span> </div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <a class="code" href="_nv_blast_preprocessor_8h.html#ae5c980f1b9848025a2fefa05a9d3bce1">NVBLAST_API</a> <a class="code" href="class_nv_1_1_blast_1_1_allocator_callback.html">Nv::Blast::AllocatorCallback</a>* <a class="code" href="_nv_blast_globals_8h.html#a28e807e18aff353853da796bc5a5b8dd">NvBlastGlobalGetAllocatorCallback</a>();</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span> </div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <a class="code" href="_nv_blast_preprocessor_8h.html#ae5c980f1b9848025a2fefa05a9d3bce1">NVBLAST_API</a> <span class="keywordtype">void</span> <a class="code" href="_nv_blast_globals_8h.html#a7295934a3be432864d0813dd25e1c2f6">NvBlastGlobalSetAllocatorCallback</a>(<a class="code" href="class_nv_1_1_blast_1_1_allocator_callback.html">Nv::Blast::AllocatorCallback</a>* allocatorCallback);</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span> </div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span> <a class="code" href="_nv_blast_preprocessor_8h.html#ae5c980f1b9848025a2fefa05a9d3bce1">NVBLAST_API</a> <a class="code" href="class_nv_1_1_blast_1_1_error_callback.html">Nv::Blast::ErrorCallback</a>* <a class="code" href="_nv_blast_globals_8h.html#a8a2db85363a6de25ef3b1c7576cf5870">NvBlastGlobalGetErrorCallback</a>();</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span> </div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span> <a class="code" href="_nv_blast_preprocessor_8h.html#ae5c980f1b9848025a2fefa05a9d3bce1">NVBLAST_API</a> <span class="keywordtype">void</span> <a class="code" href="_nv_blast_globals_8h.html#a8ea5fba86bee76ad6764c67c635e8ed5">NvBlastGlobalSetErrorCallback</a>(<a class="code" href="class_nv_1_1_blast_1_1_error_callback.html">Nv::Blast::ErrorCallback</a>* errorCallback);</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> </div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span> </div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span> </div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span> <span class="keyword">namespace </span><a class="code" href="namespace_nv.html">Nv</a></div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span> {</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span> <span class="keyword">namespace </span>Blast</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span> {</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span> </div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span> </div><div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="namespace_nv_1_1_blast.html#a1152c58af94417b6861e5bb3695b9ddf"> 195</a></span> <a class="code" href="group__foundation.html#ga36a01a4a51968418a26b06da7e1ad5d0">NV_INLINE</a> <span class="keywordtype">void</span> <a class="code" href="namespace_nv_1_1_blast.html#a1152c58af94417b6861e5bb3695b9ddf">logLL</a>(<span class="keywordtype">int</span> type, <span class="keyword">const</span> <span class="keywordtype">char</span>* msg, <span class="keyword">const</span> <span class="keywordtype">char</span>* file, <span class="keywordtype">int</span> line)</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span> {</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  <a class="code" href="struct_nv_1_1_blast_1_1_error_code.html#a626314fe23bf1efd003362a7b74523ab">ErrorCode::Enum</a> errorCode = <a class="code" href="struct_nv_1_1_blast_1_1_error_code.html#a626314fe23bf1efd003362a7b74523aba0e418ff07f71a7bb14012a91c882554b">ErrorCode::eNO_ERROR</a>;</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keywordflow">switch</span> (type)</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  {</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  <span class="keywordflow">case</span> <a class="code" href="struct_nv_blast_message.html#aa131d1cdff39661ffe961fa4c24742cead3859c9af6bbbf222b8e9bca6eb664a1">NvBlastMessage::Error</a>: errorCode = <a class="code" href="struct_nv_1_1_blast_1_1_error_code.html#a626314fe23bf1efd003362a7b74523abaede638d04bfee0ec0dfe0c155cb48fb6">ErrorCode::eINVALID_OPERATION</a>; <span class="keywordflow">break</span>;</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>  <span class="keywordflow">case</span> <a class="code" href="struct_nv_blast_message.html#aa131d1cdff39661ffe961fa4c24742ceaa76dd048e00e7842f991f69fbd9adb07">NvBlastMessage::Warning</a>: errorCode = <a class="code" href="struct_nv_1_1_blast_1_1_error_code.html#a626314fe23bf1efd003362a7b74523aba88ddbb0adcd520fd128e19973afd5d77">ErrorCode::eDEBUG_WARNING</a>; <span class="keywordflow">break</span>;</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>  <span class="keywordflow">case</span> <a class="code" href="struct_nv_blast_message.html#aa131d1cdff39661ffe961fa4c24742cea7672dda7296bbcac2e2bad5546d82c6f">NvBlastMessage::Info</a>: errorCode = <a class="code" href="struct_nv_1_1_blast_1_1_error_code.html#a626314fe23bf1efd003362a7b74523aba55eb81168a3b4017418d0606501290ba">ErrorCode::eDEBUG_INFO</a>; <span class="keywordflow">break</span>;</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>  <span class="keywordflow">case</span> <a class="code" href="struct_nv_blast_message.html#aa131d1cdff39661ffe961fa4c24742cea1ea5042557bdaca500e32f93c538695a">NvBlastMessage::Debug</a>: errorCode = <a class="code" href="struct_nv_1_1_blast_1_1_error_code.html#a626314fe23bf1efd003362a7b74523aba0e418ff07f71a7bb14012a91c882554b">ErrorCode::eNO_ERROR</a>; <span class="keywordflow">break</span>;</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>  }</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span> </div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>  <a class="code" href="_nv_blast_globals_8h.html#a8a2db85363a6de25ef3b1c7576cf5870">NvBlastGlobalGetErrorCallback</a>()-><a class="code" href="class_nv_1_1_blast_1_1_error_callback.html#a078419fe6350d27550989af5cf45ad44">reportError</a>(errorCode, msg, file, line);</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span> }</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span> </div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span> </div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span> } <span class="comment">// namespace Blast</span></div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span> } <span class="comment">// namespace Nv</span></div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span> </div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span> </div><div class="line"><a name="l00214"></a><span class="lineno"> 214</span> </div><div class="line"><a name="l00216"></a><span class="lineno"> 216</span> </div><div class="line"><a name="l00220"></a><span class="lineno"><a class="line" href="_nv_blast_globals_8h.html#a5d66f893822bf7f14f90e2b5480c6741"> 220</a></span> <span class="preprocessor">#define NVBLAST_ALLOC(_size) NvBlastGlobalGetAllocatorCallback()->allocate(_size, nullptr, __FILE__, __LINE__)</span></div><div class="line"><a name="l00221"></a><span class="lineno"><a class="line" href="_nv_blast_globals_8h.html#a8b44c099b2f3dd78e4887065cbd3844d"> 221</a></span> <span class="preprocessor">#define NVBLAST_ALLOC_NAMED(_size, _name) NvBlastGlobalGetAllocatorCallback()->allocate(_size, _name, __FILE__, __LINE__)</span></div><div class="line"><a name="l00222"></a><span class="lineno"><a class="line" href="_nv_blast_globals_8h.html#af968d9c2dc2aaeb87f55bbd85488f741"> 222</a></span> <span class="preprocessor">#define NVBLAST_FREE(_mem) NvBlastGlobalGetAllocatorCallback()->deallocate(_mem)</span></div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span> </div><div class="line"><a name="l00228"></a><span class="lineno"><a class="line" href="_nv_blast_globals_8h.html#acae7d0ae139069c3dc07f095d16bff83"> 228</a></span> <span class="preprocessor">#define NVBLAST_NEW(T) new (NvBlastGlobalGetAllocatorCallback()->allocate(sizeof(T), #T, __FILE__, __LINE__)) T</span></div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span> </div><div class="line"><a name="l00234"></a><span class="lineno"><a class="line" href="_nv_blast_globals_8h.html#a169634cc0a7d8a8567b8b390c926b2e7"> 234</a></span> <span class="preprocessor">#define NVBLAST_DELETE(obj, T) \</span></div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span> <span class="preprocessor"> (obj)->~T(); \</span></div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span> <span class="preprocessor"> NvBlastGlobalGetAllocatorCallback()->deallocate(obj)</span></div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span> </div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span> </div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span> </div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span> </div><div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="_nv_blast_globals_8h.html#aaa478c2c6c4b296431d526caa7ee6369"> 245</a></span> <span class="preprocessor">#define NVBLAST_LOG(_code, _msg) NvBlastGlobalGetErrorCallback()->reportError(_code, _msg, __FILE__, __LINE__)</span></div><div class="line"><a name="l00246"></a><span class="lineno"><a class="line" href="_nv_blast_globals_8h.html#a67129e1adea0a0ed0c08da1b16497da0"> 246</a></span> <span class="preprocessor">#define NVBLAST_LOG_ERROR(_msg) NVBLAST_LOG(Nv::Blast::ErrorCode::eINVALID_OPERATION, _msg)</span></div><div class="line"><a name="l00247"></a><span class="lineno"><a class="line" href="_nv_blast_globals_8h.html#a571a982fe46cf7f797e63393a027d359"> 247</a></span> <span class="preprocessor">#define NVBLAST_LOG_WARNING(_msg) NVBLAST_LOG(Nv::Blast::ErrorCode::eDEBUG_WARNING, _msg)</span></div><div class="line"><a name="l00248"></a><span class="lineno"><a class="line" href="_nv_blast_globals_8h.html#a9315f52cc9bb2de8f03b544716a06dce"> 248</a></span> <span class="preprocessor">#define NVBLAST_LOG_INFO(_msg) NVBLAST_LOG(Nv::Blast::ErrorCode::eDEBUG_INFO, _msg)</span></div><div class="line"><a name="l00249"></a><span class="lineno"><a class="line" href="_nv_blast_globals_8h.html#a840ebe37ee602bb328d88d629f8f3017"> 249</a></span> <span class="preprocessor">#define NVBLAST_LOG_DEBUG(_msg) NVBLAST_LOG(Nv::Blast::ErrorCode::eNO_ERROR, _msg)</span></div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span> </div><div class="line"><a name="l00255"></a><span class="lineno"><a class="line" href="_nv_blast_globals_8h.html#a12c3113fdc58a74fd2cf9e4839a14d74"> 255</a></span> <span class="preprocessor">#define NVBLAST_CHECK(_code, _expr, _msg, _onFail) \</span></div><div class="line"><a name="l00256"></a><span class="lineno"> 256</span> <span class="preprocessor"> { \</span></div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span> <span class="preprocessor"> if(!(_expr)) \</span></div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span> <span class="preprocessor"> { \</span></div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span> <span class="preprocessor"> NVBLAST_LOG(_code, _msg); \</span></div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span> <span class="preprocessor"> { _onFail; }; \</span></div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span> <span class="preprocessor"> } \</span></div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span> <span class="preprocessor"> } </span></div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span> </div><div class="line"><a name="l00264"></a><span class="lineno"><a class="line" href="_nv_blast_globals_8h.html#a7ac166d3622489e15ed28c5e61b22e0b"> 264</a></span> <span class="preprocessor">#define NVBLAST_CHECK_ERROR(_expr, _msg, _onFail) NVBLAST_CHECK(Nv::Blast::ErrorCode::eINVALID_OPERATION, _expr, _msg, _onFail)</span></div><div class="line"><a name="l00265"></a><span class="lineno"><a class="line" href="_nv_blast_globals_8h.html#addfc51da498a3e77d748dff30084df79"> 265</a></span> <span class="preprocessor">#define NVBLAST_CHECK_WARNING(_expr, _msg, _onFail) NVBLAST_CHECK(Nv::Blast::ErrorCode::eDEBUG_WARNING, _expr, _msg, _onFail)</span></div><div class="line"><a name="l00266"></a><span class="lineno"><a class="line" href="_nv_blast_globals_8h.html#a9118c6afe116051855dcd7fcd38baa9a"> 266</a></span> <span class="preprocessor">#define NVBLAST_CHECK_INFO(_expr, _msg, _onFail) NVBLAST_CHECK(Nv::Blast::ErrorCode::eDEBUG_INFO, _expr, _msg, _onFail)</span></div><div class="line"><a name="l00267"></a><span class="lineno"><a class="line" href="_nv_blast_globals_8h.html#afee8367abfa398f31a979b6a6918492f"> 267</a></span> <span class="preprocessor">#define NVBLAST_CHECK_DEBUG(_expr, _msg, _onFail) NVBLAST_CHECK(Nv::Blast::ErrorCode::eNO_ERROR, _expr, _msg, _onFail)</span></div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span> </div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span> </div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span> </div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span> </div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span> <span class="comment">// Macro to load a uint32_t (or larger) with four characters</span></div><div class="line"><a name="l00274"></a><span class="lineno"><a class="line" href="_nv_blast_globals_8h.html#a05d6e56bfb4bc7ffdaccd9e32ef1551e"> 274</a></span> <span class="preprocessor">#define NVBLAST_FOURCC(_a, _b, _c, _d) ( (uint32_t)(_a) | (uint32_t)(_b)<<8 | (uint32_t)(_c)<<16 | (uint32_t)(_d)<<24 )</span></div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span> </div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span> </div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span> <span class="preprocessor">#endif // ifndef NVBLASTGLOBALS_H</span></div><div class="ttc" id="struct_nv_blast_message_html_aa131d1cdff39661ffe961fa4c24742cead3859c9af6bbbf222b8e9bca6eb664a1"><div class="ttname"><a href="struct_nv_blast_message.html#aa131d1cdff39661ffe961fa4c24742cead3859c9af6bbbf222b8e9bca6eb664a1">NvBlastMessage::Error</a></div><div class="ttdoc">Error messages. </div><div class="ttdef"><b>Definition:</b> NvBlastTypes.h:49</div></div>
<div class="ttc" id="class_nv_1_1_blast_1_1_allocator_callback_html_aaaca2075d5aed1f8d276f5ecf090bc72"><div class="ttname"><a href="class_nv_1_1_blast_1_1_allocator_callback.html#aaaca2075d5aed1f8d276f5ecf090bc72">Nv::Blast::AllocatorCallback::deallocate</a></div><div class="ttdeci">virtual void deallocate(void *ptr)=0</div><div class="ttdoc">Frees memory previously allocated by allocate(). </div></div>
<div class="ttc" id="_nv_blast_globals_8h_html_a8ea5fba86bee76ad6764c67c635e8ed5"><div class="ttname"><a href="_nv_blast_globals_8h.html#a8ea5fba86bee76ad6764c67c635e8ed5">NvBlastGlobalSetErrorCallback</a></div><div class="ttdeci">NVBLAST_API void NvBlastGlobalSetErrorCallback(Nv::Blast::ErrorCallback *errorCallback)</div></div>
<div class="ttc" id="class_nv_1_1_blast_1_1_allocator_callback_html_ae0303f5b6c3993251bdf790f43ef4e90"><div class="ttname"><a href="class_nv_1_1_blast_1_1_allocator_callback.html#ae0303f5b6c3993251bdf790f43ef4e90">Nv::Blast::AllocatorCallback::allocate</a></div><div class="ttdeci">virtual void * allocate(size_t size, const char *typeName, const char *filename, int line)=0</div><div class="ttdoc">Allocates size bytes of memory, which must be 16-byte aligned. </div></div>
<div class="ttc" id="struct_nv_1_1_blast_1_1_error_code_html_a626314fe23bf1efd003362a7b74523aba55eb81168a3b4017418d0606501290ba"><div class="ttname"><a href="struct_nv_1_1_blast_1_1_error_code.html#a626314fe23bf1efd003362a7b74523aba55eb81168a3b4017418d0606501290ba">Nv::Blast::ErrorCode::eDEBUG_INFO</a></div><div class="ttdoc">An informational message. </div><div class="ttdef"><b>Definition:</b> NvBlastGlobals.h:95</div></div>
<div class="ttc" id="class_nv_1_1_blast_1_1_error_callback_html_a078419fe6350d27550989af5cf45ad44"><div class="ttname"><a href="class_nv_1_1_blast_1_1_error_callback.html#a078419fe6350d27550989af5cf45ad44">Nv::Blast::ErrorCallback::reportError</a></div><div class="ttdeci">virtual void reportError(ErrorCode::Enum code, const char *message, const char *file, int line)=0</div><div class="ttdoc">Reports an error code. </div></div>
<div class="ttc" id="_nv_blast_types_8h_html"><div class="ttname"><a href="_nv_blast_types_8h.html">NvBlastTypes.h</a></div></div>
<div class="ttc" id="namespace_nv_1_1_blast_html_a1152c58af94417b6861e5bb3695b9ddf"><div class="ttname"><a href="namespace_nv_1_1_blast.html#a1152c58af94417b6861e5bb3695b9ddf">Nv::Blast::logLL</a></div><div class="ttdeci">NV_INLINE void logLL(int type, const char *msg, const char *file, int line)</div><div class="ttdef"><b>Definition:</b> NvBlastGlobals.h:195</div></div>
<div class="ttc" id="struct_nv_blast_message_html_aa131d1cdff39661ffe961fa4c24742ceaa76dd048e00e7842f991f69fbd9adb07"><div class="ttname"><a href="struct_nv_blast_message.html#aa131d1cdff39661ffe961fa4c24742ceaa76dd048e00e7842f991f69fbd9adb07">NvBlastMessage::Warning</a></div><div class="ttdoc">Warning messages. </div><div class="ttdef"><b>Definition:</b> NvBlastTypes.h:50</div></div>
<div class="ttc" id="class_nv_1_1_blast_1_1_error_callback_html"><div class="ttname"><a href="class_nv_1_1_blast_1_1_error_callback.html">Nv::Blast::ErrorCallback</a></div><div class="ttdoc">User defined interface class. Used by the library to emit debug information. </div><div class="ttdef"><b>Definition:</b> NvBlastGlobals.h:131</div></div>
<div class="ttc" id="struct_nv_blast_message_html_aa131d1cdff39661ffe961fa4c24742cea7672dda7296bbcac2e2bad5546d82c6f"><div class="ttname"><a href="struct_nv_blast_message.html#aa131d1cdff39661ffe961fa4c24742cea7672dda7296bbcac2e2bad5546d82c6f">NvBlastMessage::Info</a></div><div class="ttdoc">Information messages. </div><div class="ttdef"><b>Definition:</b> NvBlastTypes.h:51</div></div>
<div class="ttc" id="_nv_blast_globals_8h_html_a28e807e18aff353853da796bc5a5b8dd"><div class="ttname"><a href="_nv_blast_globals_8h.html#a28e807e18aff353853da796bc5a5b8dd">NvBlastGlobalGetAllocatorCallback</a></div><div class="ttdeci">NVBLAST_API Nv::Blast::AllocatorCallback * NvBlastGlobalGetAllocatorCallback()</div></div>
<div class="ttc" id="struct_nv_1_1_blast_1_1_error_code_html"><div class="ttname"><a href="struct_nv_1_1_blast_1_1_error_code.html">Nv::Blast::ErrorCode</a></div><div class="ttdoc">Error codes. </div><div class="ttdef"><b>Definition:</b> NvBlastGlobals.h:88</div></div>
<div class="ttc" id="_nv_blast_globals_8h_html_a8a2db85363a6de25ef3b1c7576cf5870"><div class="ttname"><a href="_nv_blast_globals_8h.html#a8a2db85363a6de25ef3b1c7576cf5870">NvBlastGlobalGetErrorCallback</a></div><div class="ttdeci">NVBLAST_API Nv::Blast::ErrorCallback * NvBlastGlobalGetErrorCallback()</div></div>
<div class="ttc" id="struct_nv_1_1_blast_1_1_error_code_html_a626314fe23bf1efd003362a7b74523abaede638d04bfee0ec0dfe0c155cb48fb6"><div class="ttname"><a href="struct_nv_1_1_blast_1_1_error_code.html#a626314fe23bf1efd003362a7b74523abaede638d04bfee0ec0dfe0c155cb48fb6">Nv::Blast::ErrorCode::eINVALID_OPERATION</a></div><div class="ttdoc">method was called at a time when an operation is not possible </div><div class="ttdef"><b>Definition:</b> NvBlastGlobals.h:104</div></div>
<div class="ttc" id="_nv_blast_preprocessor_8h_html_ae5c980f1b9848025a2fefa05a9d3bce1"><div class="ttname"><a href="_nv_blast_preprocessor_8h.html#ae5c980f1b9848025a2fefa05a9d3bce1">NVBLAST_API</a></div><div class="ttdeci">#define NVBLAST_API</div><div class="ttdef"><b>Definition:</b> NvBlastPreprocessor.h:37</div></div>
<div class="ttc" id="class_nv_1_1_blast_1_1_allocator_callback_html_a5770e424c2ae2ca2bb2db50e332f3406"><div class="ttname"><a href="class_nv_1_1_blast_1_1_allocator_callback.html#a5770e424c2ae2ca2bb2db50e332f3406">Nv::Blast::AllocatorCallback::~AllocatorCallback</a></div><div class="ttdeci">virtual ~AllocatorCallback()</div><div class="ttdoc">destructor </div><div class="ttdef"><b>Definition:</b> NvBlastGlobals.h:51</div></div>
<div class="ttc" id="group__foundation_html_ga36a01a4a51968418a26b06da7e1ad5d0"><div class="ttname"><a href="group__foundation.html#ga36a01a4a51968418a26b06da7e1ad5d0">NV_INLINE</a></div><div class="ttdeci">#define NV_INLINE</div><div class="ttdef"><b>Definition:</b> NvPreprocessor.h:350</div></div>
<div class="ttc" id="struct_nv_1_1_blast_1_1_error_code_html_a626314fe23bf1efd003362a7b74523aba0e418ff07f71a7bb14012a91c882554b"><div class="ttname"><a href="struct_nv_1_1_blast_1_1_error_code.html#a626314fe23bf1efd003362a7b74523aba0e418ff07f71a7bb14012a91c882554b">Nv::Blast::ErrorCode::eNO_ERROR</a></div><div class="ttdef"><b>Definition:</b> NvBlastGlobals.h:92</div></div>
<div class="ttc" id="struct_nv_1_1_blast_1_1_error_code_html_a626314fe23bf1efd003362a7b74523aba88ddbb0adcd520fd128e19973afd5d77"><div class="ttname"><a href="struct_nv_1_1_blast_1_1_error_code.html#a626314fe23bf1efd003362a7b74523aba88ddbb0adcd520fd128e19973afd5d77">Nv::Blast::ErrorCode::eDEBUG_WARNING</a></div><div class="ttdoc">a warning message for the user to help with debugging </div><div class="ttdef"><b>Definition:</b> NvBlastGlobals.h:98</div></div>
<div class="ttc" id="class_nv_1_1_blast_1_1_allocator_callback_html"><div class="ttname"><a href="class_nv_1_1_blast_1_1_allocator_callback.html">Nv::Blast::AllocatorCallback</a></div><div class="ttdoc">Abstract base class for an application defined memory allocator that can be used by toolkit (Tk) or a...</div><div class="ttdef"><b>Definition:</b> NvBlastGlobals.h:45</div></div>
<div class="ttc" id="class_nv_1_1_blast_1_1_error_callback_html_a2c00a6e93b1b9f6c6914497c9d9fc2e0"><div class="ttname"><a href="class_nv_1_1_blast_1_1_error_callback.html#a2c00a6e93b1b9f6c6914497c9d9fc2e0">Nv::Blast::ErrorCallback::~ErrorCallback</a></div><div class="ttdeci">virtual ~ErrorCallback()</div><div class="ttdef"><b>Definition:</b> NvBlastGlobals.h:134</div></div>
<div class="ttc" id="_nv_blast_globals_8h_html_a7295934a3be432864d0813dd25e1c2f6"><div class="ttname"><a href="_nv_blast_globals_8h.html#a7295934a3be432864d0813dd25e1c2f6">NvBlastGlobalSetAllocatorCallback</a></div><div class="ttdeci">NVBLAST_API void NvBlastGlobalSetAllocatorCallback(Nv::Blast::AllocatorCallback *allocatorCallback)</div></div>
<div class="ttc" id="struct_nv_blast_message_html_aa131d1cdff39661ffe961fa4c24742cea1ea5042557bdaca500e32f93c538695a"><div class="ttname"><a href="struct_nv_blast_message.html#aa131d1cdff39661ffe961fa4c24742cea1ea5042557bdaca500e32f93c538695a">NvBlastMessage::Debug</a></div><div class="ttdoc">Used only in debug version of dll. </div><div class="ttdef"><b>Definition:</b> NvBlastTypes.h:52</div></div>
<div class="ttc" id="struct_nv_1_1_blast_1_1_error_code_html_a626314fe23bf1efd003362a7b74523ab"><div class="ttname"><a href="struct_nv_1_1_blast_1_1_error_code.html#a626314fe23bf1efd003362a7b74523ab">Nv::Blast::ErrorCode::Enum</a></div><div class="ttdeci">Enum</div><div class="ttdef"><b>Definition:</b> NvBlastGlobals.h:90</div></div>
<div class="ttc" id="namespace_nv_html"><div class="ttname"><a href="namespace_nv.html">Nv</a></div><div class="ttdef"><b>Definition:</b> NvBlastArray.h:37</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div class="footer">
Copyright © 2015-2017 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>
|