BundleGroup.html 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>BundleGroup - 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="Object3D.html">Object3D</a> → <a href="Group.html">Group</a> → </p>
  13. <h1 translate="no">BundleGroup</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>A specialized group which enables applications access to the
  17. Render Bundle API of WebGPU. The group with all its descendant nodes
  18. are considered as one render bundle and processed as such by
  19. the renderer.</p>
  20. <p>This module is only fully supported by <code>WebGPURenderer</code> with a WebGPU backend.
  21. With a WebGL backend, the group can technically be rendered but without
  22. any performance improvements.</p></div>
  23. </header>
  24. <article>
  25. <div class="container-overview">
  26. <h2>Constructor</h2>
  27. <h3 class="name name-method" id="BundleGroup" translate="no">new <a href="#BundleGroup">BundleGroup</a><span class="signature">()</span> </h3>
  28. <div class="method">
  29. <div class="description">
  30. <p>Constructs a new bundle group.</p>
  31. </div>
  32. </div>
  33. </div>
  34. <h2 class="subsection-title">Properties</h2>
  35. <div class="member">
  36. <h3 class="name" id="isBundleGroup" translate="no">.<a href="#isBundleGroup">isBundleGroup</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  37. <div class="description">
  38. <p>This flag can be used for type testing.</p>
  39. <p>Default is <code>true</code>.</p>
  40. </div>
  41. </div>
  42. <div class="member">
  43. <h3 class="name" id="needsUpdate" translate="no">.<a href="#needsUpdate">needsUpdate</a><span class="type-signature"> : boolean</span> </h3>
  44. <div class="description">
  45. <p>Set this property to <code>true</code> when the bundle group has changed.</p>
  46. <p>Default is <code>false</code>.</p>
  47. </div>
  48. </div>
  49. <div class="member">
  50. <h3 class="name" id="static" translate="no">.<a href="#static">static</a><span class="type-signature"> : boolean</span> </h3>
  51. <div class="description">
  52. <p>Whether the bundle is static or not. When set to <code>true</code>, the structure
  53. is assumed to be static and does not change. E.g. no new objects are
  54. added to the group</p>
  55. <p>If a change is required, an update can still be forced by setting the
  56. <code>needsUpdate</code> flag to <code>true</code>.</p>
  57. <p>Default is <code>true</code>.</p>
  58. </div>
  59. </div>
  60. <div class="member">
  61. <h3 class="name" id="type" translate="no">.<a href="#type">type</a><span class="type-signature"> : string</span> <span class="type-signature">(readonly) </span></h3>
  62. <div class="description">
  63. <p>This property is only relevant for detecting types
  64. during serialization/deserialization. It should always
  65. match the class name.</p>
  66. <p>Default is <code>'BundleGroup'</code>.</p>
  67. </div>
  68. <dl class="details">
  69. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Group.html#type">Group#type</a></dt>
  70. </dl>
  71. </div>
  72. <div class="member">
  73. <h3 class="name" id="version" translate="no">.<a href="#version">version</a><span class="type-signature"> : number</span> <span class="type-signature">(readonly) </span></h3>
  74. <div class="description">
  75. <p>The bundle group's version.</p>
  76. <p>Default is <code>0</code>.</p>
  77. </div>
  78. </div>
  79. <h2 class="subsection-title">Source</h2>
  80. <p>
  81. <a href="https://github.com/mrdoob/three.js/blob/master/src/renderers/common/BundleGroup.js" translate="no" target="_blank" rel="noopener">src/renderers/common/BundleGroup.js</a>
  82. </p>
  83. </article>
  84. </section>
  85. <script src="../scripts/linenumber.js"></script>
  86. <script src="../scripts/page.js"></script>
  87. </body>
  88. </html>
粤ICP备19079148号