IndirectStorageBufferAttribute.html 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>IndirectStorageBufferAttribute - 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="BufferAttribute.html">BufferAttribute</a> → <a href="StorageBufferAttribute.html">StorageBufferAttribute</a> → </p>
  13. <h1 translate="no">IndirectStorageBufferAttribute</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This special type of buffer attribute is intended for compute shaders.
  17. It can be used to encode draw parameters for indirect draw calls.</p>
  18. <p>Note: This type of buffer attribute can only be used with <code>WebGPURenderer</code>
  19. and a WebGPU backend.</p></div>
  20. </header>
  21. <article>
  22. <div class="container-overview">
  23. <h2>Constructor</h2>
  24. <h3 class="name name-method" id="IndirectStorageBufferAttribute" translate="no">new <a href="#IndirectStorageBufferAttribute">IndirectStorageBufferAttribute</a><span class="signature">( count : <span class="param-type">number | Uint32Array</span>, itemSize : <span class="param-type">number</span> )</span> </h3>
  25. <div class="method">
  26. <div class="description">
  27. <p>Constructs a new storage buffer attribute.</p>
  28. </div>
  29. <table class="params">
  30. <tbody>
  31. <tr>
  32. <td class="name"><code>count</code></td>
  33. <td class="description last"><p>The item count. It is also valid to pass a <code>Uint32Array</code> as an argument.
  34. The subsequent parameter is then obsolete.</p></td>
  35. </tr>
  36. <tr>
  37. <td class="name"><code>itemSize</code></td>
  38. <td class="description last"><p>The item size.</p></td>
  39. </tr>
  40. </tbody>
  41. </table>
  42. </div>
  43. </div>
  44. <h2 class="subsection-title">Properties</h2>
  45. <div class="member">
  46. <h3 class="name" id="isIndirectStorageBufferAttribute" translate="no">.<a href="#isIndirectStorageBufferAttribute">isIndirectStorageBufferAttribute</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  47. <div class="description">
  48. <p>This flag can be used for type testing.<br/>Default is <code>true</code>.</p>
  49. </div>
  50. </div>
  51. <h2 class="subsection-title">Source</h2>
  52. <p>
  53. <a href="https://github.com/mrdoob/three.js/blob/master/src/renderers/common/IndirectStorageBufferAttribute.js" target="_blank" rel="noopener" translate="no">src/renderers/common/IndirectStorageBufferAttribute.js</a>
  54. </p>
  55. </article>
  56. </section>
  57. <script src="../scripts/linenumber.js"></script>
  58. <script src="../scripts/page.js"></script>
  59. </body>
  60. </html>
粤ICP备19079148号