SubgroupFunctionNode.html 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>SubgroupFunctionNode - 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="TempNode.html">TempNode</a> → </p>
  13. <h1 translate="no">SubgroupFunctionNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This class represents a set of built in WGSL shader functions that sync
  17. synchronously execute an operation across a subgroup, or 'warp', of compute
  18. or fragment shader invocations within a workgroup. Typically, these functions
  19. will synchronously execute an operation using data from all active invocations
  20. within the subgroup, then broadcast that result to all active invocations. In
  21. other graphics APIs, subgroup functions are also referred to as wave intrinsics
  22. (DirectX/HLSL) or warp intrinsics (CUDA).</p></div>
  23. </header>
  24. <article>
  25. <div class="container-overview">
  26. <h2>Constructor</h2>
  27. <h3 class="name name-method" id="SubgroupFunctionNode" translate="no">new <a href="#SubgroupFunctionNode">SubgroupFunctionNode</a><span class="signature">( method : <span class="param-type">string</span>, aNode : <span class="param-type"><a href="Node.html">Node</a></span>, bNode : <span class="param-type"><a href="Node.html">Node</a></span> )</span> </h3>
  28. <div class="method">
  29. <div class="description">
  30. <p>Constructs a new function node.</p>
  31. </div>
  32. <table class="params">
  33. <tbody>
  34. <tr>
  35. <td class="name">
  36. <strong>method</strong>
  37. </td>
  38. <td class="description last">
  39. <p>The subgroup/wave intrinsic method to construct.</p>
  40. </td>
  41. </tr>
  42. <tr>
  43. <td class="name">
  44. <strong>aNode</strong>
  45. </td>
  46. <td class="description last">
  47. <p>The method's first argument.</p>
  48. <p>Default is <code>null</code>.</p>
  49. </td>
  50. </tr>
  51. <tr>
  52. <td class="name">
  53. <strong>bNode</strong>
  54. </td>
  55. <td class="description last">
  56. <p>The method's second argument.</p>
  57. <p>Default is <code>null</code>.</p>
  58. </td>
  59. </tr>
  60. </tbody>
  61. </table>
  62. </div>
  63. </div>
  64. <h2 class="subsection-title">Properties</h2>
  65. <div class="member">
  66. <h3 class="name" id="aNode" translate="no">.<a href="#aNode">aNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  67. <div class="description">
  68. <p>The method's first argument.</p>
  69. </div>
  70. </div>
  71. <div class="member">
  72. <h3 class="name" id="bNode" translate="no">.<a href="#bNode">bNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  73. <div class="description">
  74. <p>The method's second argument.</p>
  75. </div>
  76. </div>
  77. <div class="member">
  78. <h3 class="name" id="method" translate="no">.<a href="#method">method</a><span class="type-signature"> : String</span> </h3>
  79. <div class="description">
  80. <p>The subgroup/wave intrinsic method to construct.</p>
  81. </div>
  82. </div>
  83. <h2 class="subsection-title">Source</h2>
  84. <p>
  85. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/gpgpu/SubgroupFunctionNode.js" translate="no" target="_blank" rel="noopener">src/nodes/gpgpu/SubgroupFunctionNode.js</a>
  86. </p>
  87. </article>
  88. </section>
  89. <script src="../scripts/linenumber.js"></script>
  90. <script src="../scripts/page.js"></script>
  91. </body>
  92. </html>
粤ICP备19079148号