WGSLNodeParser.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>WGSLNodeParser - 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="NodeParser.html">NodeParser</a> → </p>
  13. <h1 translate="no">WGSLNodeParser</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>A WGSL node parser.</p></div>
  17. </header>
  18. <article>
  19. <div class="container-overview">
  20. <h2>Constructor</h2>
  21. <h3 class="name name-method" id="WGSLNodeParser" translate="no">new <a href="#WGSLNodeParser">WGSLNodeParser</a><span class="signature">()</span> </h3>
  22. <div class="method">
  23. </div>
  24. </div>
  25. <h2 class="subsection-title">Methods</h2>
  26. <h3 class="name name-method" id="parseFunction" translate="no">.<a href="#parseFunction">parseFunction</a><span class="signature">( source : <span class="param-type">string</span> )</span><span class="type-signature"> : <a href="WGSLNodeFunction.html">WGSLNodeFunction</a></span> </h3>
  27. <div class="method">
  28. <div class="description">
  29. <p>The method parses the given WGSL code an returns a node function.</p>
  30. </div>
  31. <table class="params">
  32. <tbody>
  33. <tr>
  34. <td class="name">
  35. <strong>source</strong>
  36. </td>
  37. <td class="description last">
  38. <p>The WGSL code.</p>
  39. </td>
  40. </tr>
  41. </tbody>
  42. </table>
  43. <dl class="details">
  44. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="NodeParser.html#parseFunction">NodeParser#parseFunction</a></dt>
  45. </dl>
  46. <dl class="details">
  47. <dt class="tag-returns"><strong>Returns:</strong> A node function.</dt>
  48. </dl>
  49. </div>
  50. <h2 class="subsection-title">Source</h2>
  51. <p>
  52. <a href="https://github.com/mrdoob/three.js/blob/master/src/renderers/webgpu/nodes/WGSLNodeParser.js" translate="no" target="_blank" rel="noopener">src/renderers/webgpu/nodes/WGSLNodeParser.js</a>
  53. </p>
  54. </article>
  55. </section>
  56. <script src="../scripts/linenumber.js"></script>
  57. <script src="../scripts/page.js"></script>
  58. </body>
  59. </html>
粤ICP备19079148号