StorageArrayElementNode.html 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>StorageArrayElementNode - 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="ArrayElementNode.html">ArrayElementNode</a> → </p>
  13. <h1 translate="no">StorageArrayElementNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This class enables element access on instances of <a href="StorageBufferNode.html">StorageBufferNode</a>.
  17. In most cases, it is indirectly used when accessing elements with the
  18. <a href="StorageBufferNode.html#element">StorageBufferNode#element</a> method.</p></div>
  19. <h2>Code Example</h2>
  20. <div translate="no"><pre><code class="language-js">const position = positionStorage.element( instanceIndex );
  21. </code></pre></div>
  22. </header>
  23. <article>
  24. <div class="container-overview">
  25. <h2>Constructor</h2>
  26. <h3 class="name name-method" id="StorageArrayElementNode" translate="no">new <a href="#StorageArrayElementNode">StorageArrayElementNode</a><span class="signature">( storageBufferNode : <span class="param-type"><a href="StorageBufferNode.html">StorageBufferNode</a></span>, indexNode : <span class="param-type"><a href="Node.html">Node</a></span> )</span> </h3>
  27. <div class="method">
  28. <div class="description">
  29. <p>Constructs storage buffer element node.</p>
  30. </div>
  31. <table class="params">
  32. <tbody>
  33. <tr>
  34. <td class="name">
  35. <strong>storageBufferNode</strong>
  36. </td>
  37. <td class="description last">
  38. <p>The storage buffer node.</p>
  39. </td>
  40. </tr>
  41. <tr>
  42. <td class="name">
  43. <strong>indexNode</strong>
  44. </td>
  45. <td class="description last">
  46. <p>The index node that defines the element access.</p>
  47. </td>
  48. </tr>
  49. </tbody>
  50. </table>
  51. </div>
  52. </div>
  53. <h2 class="subsection-title">Properties</h2>
  54. <div class="member">
  55. <h3 class="name" id="isStorageArrayElementNode" translate="no">.<a href="#isStorageArrayElementNode">isStorageArrayElementNode</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  56. <div class="description">
  57. <p>This flag can be used for type testing.</p>
  58. <p>Default is <code>true</code>.</p>
  59. </div>
  60. </div>
  61. <div class="member">
  62. <h3 class="name" id="storageBufferNode" translate="no">.<a href="#storageBufferNode">storageBufferNode</a><span class="type-signature"> : <a href="StorageBufferNode.html">StorageBufferNode</a></span> </h3>
  63. <div class="description">
  64. <p>The storage buffer node.</p>
  65. </div>
  66. </div>
  67. <h2 class="subsection-title">Source</h2>
  68. <p>
  69. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/utils/StorageArrayElementNode.js" translate="no" target="_blank" rel="noopener">src/nodes/utils/StorageArrayElementNode.js</a>
  70. </p>
  71. </article>
  72. </section>
  73. <script src="../scripts/linenumber.js"></script>
  74. <script src="../scripts/page.js"></script>
  75. </body>
  76. </html>
粤ICP备19079148号