ComputeNode.html 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>ComputeNode - Three.js Docs</title>
  6. <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  7. <script src="../scripts/highlight.min.js"></script>
  8. <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
  9. <link type="text/css" rel="stylesheet" href="../styles/page.css">
  10. </head>
  11. <body>
  12. <p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="Node.html">Node</a> → </p>
  13. <h1 translate="no">ComputeNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>TODO</p></div>
  17. </header>
  18. <article>
  19. <div class="container-overview">
  20. <h2>Constructor</h2>
  21. <h3 class="name name-method" id="ComputeNode" translate="no">new <a href="#ComputeNode">ComputeNode</a><span class="signature">( computeNode : <span class="param-type">Node</span>, workgroupSize : <span class="param-type">Array.&lt;number></span> )</span> </h3>
  22. <div class="method">
  23. <div class="description">
  24. <p>Constructs a new compute node.</p>
  25. </div>
  26. <table class="params">
  27. <tbody>
  28. <tr>
  29. <td class="name"><code>computeNode</code></td>
  30. <td class="description last"><p>TODO</p></td>
  31. </tr>
  32. <tr>
  33. <td class="name"><code>workgroupSize</code></td>
  34. <td class="description last"><p>TODO.</p></td>
  35. </tr>
  36. </tbody>
  37. </table>
  38. </div>
  39. </div>
  40. <h2 class="subsection-title">Properties</h2>
  41. <div class="member">
  42. <h3 class="name" id="computeNode" translate="no">.<a href="#computeNode">computeNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  43. <div class="description">
  44. <p>TODO</p>
  45. </div>
  46. </div>
  47. <div class="member">
  48. <h3 class="name" id="count" translate="no">.<a href="#count">count</a><span class="type-signature"> : number | Array.&lt;number></span> </h3>
  49. <div class="description">
  50. <p>TODO</p>
  51. </div>
  52. </div>
  53. <div class="member">
  54. <h3 class="name" id="isComputeNode" translate="no">.<a href="#isComputeNode">isComputeNode</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  55. <div class="description">
  56. <p>This flag can be used for type testing.<br/>Default is <code>true</code>.</p>
  57. </div>
  58. </div>
  59. <div class="member">
  60. <h3 class="name" id="name" translate="no">.<a href="#name">name</a><span class="type-signature"> : string</span> </h3>
  61. <div class="description">
  62. <p>The name or label of the uniform.<br/>Default is <code>''</code>.</p>
  63. </div>
  64. <dl class="details">
  65. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Node.html#name">Node#name</a></dt>
  66. </dl>
  67. </div>
  68. <div class="member">
  69. <h3 class="name" id="onInitFunction" translate="no">.<a href="#onInitFunction">onInitFunction</a><span class="type-signature"> : function</span> </h3>
  70. <div class="description">
  71. <p>TODO</p>
  72. </div>
  73. </div>
  74. <div class="member">
  75. <h3 class="name" id="updateBeforeType" translate="no">.<a href="#updateBeforeType">updateBeforeType</a><span class="type-signature"> : string</span> </h3>
  76. <div class="description">
  77. <p>The <code>updateBeforeType</code> is set to <code>NodeUpdateType.OBJECT</code> since <a href="ComputeNode.html#updateBefore">ComputeNode#updateBefore</a>
  78. is executed once per object by default.<br/>Default is <code>'object'</code>.</p>
  79. </div>
  80. <dl class="details">
  81. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Node.html#updateBeforeType">Node#updateBeforeType</a></dt>
  82. </dl>
  83. </div>
  84. <div class="member">
  85. <h3 class="name" id="version" translate="no">.<a href="#version">version</a><span class="type-signature"> : number</span> </h3>
  86. <div class="description">
  87. <p>TODO</p>
  88. </div>
  89. <dl class="details">
  90. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Node.html#version">Node#version</a></dt>
  91. </dl>
  92. </div>
  93. <div class="member">
  94. <h3 class="name" id="workgroupSize" translate="no">.<a href="#workgroupSize">workgroupSize</a><span class="type-signature"> : Array.&lt;number></span> </h3>
  95. <div class="description">
  96. <p>TODO<br/>Default is <code>[ 64 ]</code>.</p>
  97. </div>
  98. </div>
  99. <h2 class="subsection-title">Methods</h2>
  100. <h3 class="name name-method" id="dispose" translate="no">.<a href="#dispose">dispose</a><span class="signature">()</span> </h3>
  101. <div class="method">
  102. <div class="description">
  103. <p>Executes the <code>dispose</code> event for this node.</p>
  104. </div>
  105. <dl class="details">
  106. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Node.html#dispose">Node#dispose</a></dt>
  107. </dl>
  108. </div>
  109. <h3 class="name name-method" id="getCount" translate="no">.<a href="#getCount">getCount</a><span class="signature">()</span><span class="type-signature"> : number | Array.&lt;number></span> </h3>
  110. <div class="method">
  111. <div class="description">
  112. <p>TODO</p>
  113. </div>
  114. <dl class="details">
  115. <dt class="tag-returns"><strong>Returns:</strong> </dt>
  116. </dl>
  117. </div>
  118. <h3 class="name name-method" id="label" translate="no">.<a href="#label">label</a><span class="signature">( name : <span class="param-type">string</span> )</span><span class="type-signature"> : <a href="ComputeNode.html">ComputeNode</a></span> </h3>
  119. <div class="method">
  120. <div class="description">
  121. <p>Sets the <a href="ComputeNode.html#name">ComputeNode#name</a> property.</p>
  122. </div>
  123. <table class="params">
  124. <tbody>
  125. <tr>
  126. <td class="name"><code>name</code></td>
  127. <td class="description last"><p>The name of the uniform.</p></td>
  128. </tr>
  129. </tbody>
  130. </table>
  131. <dl class="details">
  132. <dt class="important tag-deprecated"><strong>Deprecated:</strong> Yes</dt>
  133. </dl>
  134. <dl class="details">
  135. <dt class="tag-returns"><strong>Returns:</strong> A reference to this node.</dt>
  136. </dl>
  137. </div>
  138. <h3 class="name name-method" id="onInit" translate="no">.<a href="#onInit">onInit</a><span class="signature">( callback : <span class="param-type">function</span> )</span><span class="type-signature"> : <a href="ComputeNode.html">ComputeNode</a></span> </h3>
  139. <div class="method">
  140. <div class="description">
  141. <p>TODO</p>
  142. </div>
  143. <table class="params">
  144. <tbody>
  145. <tr>
  146. <td class="name"><code>callback</code></td>
  147. <td class="description last"><p>TODO.</p></td>
  148. </tr>
  149. </tbody>
  150. </table>
  151. <dl class="details">
  152. <dt class="tag-returns"><strong>Returns:</strong> A reference to this node.</dt>
  153. </dl>
  154. </div>
  155. <h3 class="name name-method" id="setCount" translate="no">.<a href="#setCount">setCount</a><span class="signature">( count : <span class="param-type">number | Array.&lt;number></span> )</span><span class="type-signature"> : <a href="ComputeNode.html">ComputeNode</a></span> </h3>
  156. <div class="method">
  157. <div class="description">
  158. <p>TODO</p>
  159. </div>
  160. <table class="params">
  161. <tbody>
  162. <tr>
  163. <td class="name"><code>count</code></td>
  164. <td class="description last"><p>Array with [ x, y, z ] values for dispatch or a single number for the count</p></td>
  165. </tr>
  166. </tbody>
  167. </table>
  168. <dl class="details">
  169. <dt class="tag-returns"><strong>Returns:</strong> </dt>
  170. </dl>
  171. </div>
  172. <h3 class="name name-method" id="setName" translate="no">.<a href="#setName">setName</a><span class="signature">( name : <span class="param-type">string</span> )</span><span class="type-signature"> : <a href="ComputeNode.html">ComputeNode</a></span> </h3>
  173. <div class="method">
  174. <div class="description">
  175. <p>Sets the <a href="ComputeNode.html#name">ComputeNode#name</a> property.</p>
  176. </div>
  177. <table class="params">
  178. <tbody>
  179. <tr>
  180. <td class="name"><code>name</code></td>
  181. <td class="description last"><p>The name of the uniform.</p></td>
  182. </tr>
  183. </tbody>
  184. </table>
  185. <dl class="details">
  186. <dt class="tag-returns"><strong>Returns:</strong> A reference to this node.</dt>
  187. </dl>
  188. </div>
  189. <h3 class="name name-method" id="updateBefore" translate="no">.<a href="#updateBefore">updateBefore</a><span class="signature">( frame : <span class="param-type">NodeFrame</span> )</span> </h3>
  190. <div class="method">
  191. <div class="description">
  192. <p>The method execute the compute for this node.</p>
  193. </div>
  194. <table class="params">
  195. <tbody>
  196. <tr>
  197. <td class="name"><code>frame</code></td>
  198. <td class="description last"><p>A reference to the current node frame.</p></td>
  199. </tr>
  200. </tbody>
  201. </table>
  202. <dl class="details">
  203. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Node.html#updateBefore">Node#updateBefore</a></dt>
  204. </dl>
  205. </div>
  206. <h2 class="subsection-title">Source</h2>
  207. <p>
  208. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/gpgpu/ComputeNode.js" target="_blank" rel="noopener" translate="no">src/nodes/gpgpu/ComputeNode.js</a>
  209. </p>
  210. </article>
  211. </section>
  212. <script src="../scripts/linenumber.js"></script>
  213. <script src="../scripts/page.js"></script>
  214. </body>
  215. </html>
粤ICP备19079148号