StorageTexture3DNode.html 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>StorageTexture3DNode - 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> → <a href="InputNode.html">InputNode</a> → <a href="UniformNode.html">UniformNode</a> → <a href="TextureNode.html">TextureNode</a> → <a href="StorageTextureNode.html">StorageTextureNode</a> → </p>
  13. <h1 translate="no">StorageTexture3DNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This special version of a texture node can be used to
  17. write data into a 3D storage texture with a compute shader.</p></div>
  18. </header>
  19. <article>
  20. <div class="container-overview">
  21. <h2>Constructor</h2>
  22. <h3 class="name name-method" id="StorageTexture3DNode" translate="no">new <a href="#StorageTexture3DNode">StorageTexture3DNode</a><span class="signature">( value : <span class="param-type"><a href="Storage3DTexture.html">Storage3DTexture</a></span>, uvNode : <span class="param-type"><a href="Node.html">Node</a>.&lt;vec3></span>, storeNode : <span class="param-type"><a href="Node.html">Node</a></span> )</span> </h3>
  23. <div class="method">
  24. <div class="description">
  25. <p>Constructs a new 3D storage texture node.</p>
  26. </div>
  27. <table class="params">
  28. <tbody>
  29. <tr>
  30. <td class="name">
  31. <strong translate="no">value</strong>
  32. </td>
  33. <td class="description last">
  34. <p>The 3D storage texture.</p>
  35. </td>
  36. </tr>
  37. <tr>
  38. <td class="name">
  39. <strong translate="no">uvNode</strong>
  40. </td>
  41. <td class="description last">
  42. <p>The uv node.</p>
  43. </td>
  44. </tr>
  45. <tr>
  46. <td class="name">
  47. <strong translate="no">storeNode</strong>
  48. </td>
  49. <td class="description last">
  50. <p>The value node that should be stored in the texture.</p>
  51. <p>Default is <code>null</code>.</p>
  52. </td>
  53. </tr>
  54. </tbody>
  55. </table>
  56. </div>
  57. </div>
  58. <h2 class="subsection-title">Properties</h2>
  59. <div class="member">
  60. <h3 class="name" id="isStorageTexture3DNode" translate="no">.<a href="#isStorageTexture3DNode">isStorageTexture3DNode</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  61. <div class="description">
  62. <p>This flag can be used for type testing.</p>
  63. <p>Default is <code>true</code>.</p>
  64. </div>
  65. </div>
  66. <h2 class="subsection-title">Methods</h2>
  67. <h3 class="name name-method" id="generateOffset" translate="no">.<a href="#generateOffset">generateOffset</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span>, offsetNode : <span class="param-type"><a href="Node.html">Node</a></span> )</span><span class="type-signature"> : string</span> </h3>
  68. <div class="method">
  69. <div class="description">
  70. <p>Generates the offset code snippet.</p>
  71. </div>
  72. <table class="params">
  73. <tbody>
  74. <tr>
  75. <td class="name">
  76. <strong translate="no">builder</strong>
  77. </td>
  78. <td class="description last">
  79. <p>The current node builder.</p>
  80. </td>
  81. </tr>
  82. <tr>
  83. <td class="name">
  84. <strong translate="no">offsetNode</strong>
  85. </td>
  86. <td class="description last">
  87. <p>The offset node to generate code for.</p>
  88. </td>
  89. </tr>
  90. </tbody>
  91. </table>
  92. <dl class="details">
  93. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="StorageTextureNode.html#generateOffset">StorageTextureNode#generateOffset</a></dt>
  94. </dl>
  95. <dl class="details">
  96. <dt class="tag-returns"><strong>Returns:</strong> The generated code snippet.</dt>
  97. </dl>
  98. </div>
  99. <h3 class="name name-method" id="generateUV" translate="no">.<a href="#generateUV">generateUV</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span>, uvNode : <span class="param-type"><a href="Node.html">Node</a></span> )</span><span class="type-signature"> : string</span> </h3>
  100. <div class="method">
  101. <div class="description">
  102. <p>Generates the uv code snippet.</p>
  103. </div>
  104. <table class="params">
  105. <tbody>
  106. <tr>
  107. <td class="name">
  108. <strong translate="no">builder</strong>
  109. </td>
  110. <td class="description last">
  111. <p>The current node builder.</p>
  112. </td>
  113. </tr>
  114. <tr>
  115. <td class="name">
  116. <strong translate="no">uvNode</strong>
  117. </td>
  118. <td class="description last">
  119. <p>The uv node to generate code for.</p>
  120. </td>
  121. </tr>
  122. </tbody>
  123. </table>
  124. <dl class="details">
  125. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="StorageTextureNode.html#generateUV">StorageTextureNode#generateUV</a></dt>
  126. </dl>
  127. <dl class="details">
  128. <dt class="tag-returns"><strong>Returns:</strong> The generated code snippet.</dt>
  129. </dl>
  130. </div>
  131. <h3 class="name name-method" id="getDefaultUV" translate="no">.<a href="#getDefaultUV">getDefaultUV</a><span class="signature">()</span><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;vec3></span> </h3>
  132. <div class="method">
  133. <div class="description">
  134. <p>Returns a default uv node which is in context of 3D textures a three-dimensional
  135. uv node.</p>
  136. </div>
  137. <dl class="details">
  138. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="StorageTextureNode.html#getDefaultUV">StorageTextureNode#getDefaultUV</a></dt>
  139. </dl>
  140. <dl class="details">
  141. <dt class="tag-returns"><strong>Returns:</strong> The default uv node.</dt>
  142. </dl>
  143. </div>
  144. <h3 class="name name-method" id="setUpdateMatrix" translate="no">.<a href="#setUpdateMatrix">setUpdateMatrix</a><span class="signature">( value : <span class="param-type">boolean</span> )</span> </h3>
  145. <div class="method">
  146. <div class="description">
  147. <p>Overwritten with an empty implementation since the <code>updateMatrix</code> flag is ignored
  148. for 3D textures. The uv transformation matrix is not applied to 3D textures.</p>
  149. </div>
  150. <table class="params">
  151. <tbody>
  152. <tr>
  153. <td class="name">
  154. <strong translate="no">value</strong>
  155. </td>
  156. <td class="description last">
  157. <p>The update toggle.</p>
  158. </td>
  159. </tr>
  160. </tbody>
  161. </table>
  162. <dl class="details">
  163. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="StorageTextureNode.html#setUpdateMatrix">StorageTextureNode#setUpdateMatrix</a></dt>
  164. </dl>
  165. </div>
  166. <h2 class="subsection-title">Source</h2>
  167. <p>
  168. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/accessors/StorageTexture3DNode.js" translate="no" target="_blank" rel="noopener">src/nodes/accessors/StorageTexture3DNode.js</a>
  169. </p>
  170. </article>
  171. </section>
  172. <script src="../scripts/linenumber.js"></script>
  173. <script src="../scripts/page.js"></script>
  174. </body>
  175. </html>
粤ICP备19079148号