Float16BufferAttribute.html 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Float16BufferAttribute - 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> → </p>
  13. <h1 translate="no">Float16BufferAttribute</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>Convenient class that can be used when creating a <code>Float16</code> buffer attribute with
  17. a plain <code>Array</code> instance.</p>
  18. <p>This class automatically converts to and from FP16 via <code>Uint16Array</code> since <code>Float16Array</code>
  19. browser support is still problematic.</p></div>
  20. </header>
  21. <article>
  22. <div class="container-overview">
  23. <h2>Constructor</h2>
  24. <h3 class="name name-method" id="Float16BufferAttribute" translate="no">new <a href="#Float16BufferAttribute">Float16BufferAttribute</a><span class="signature">( array : <span class="param-type">Array.&lt;number> | Uint16Array</span>, itemSize : <span class="param-type">number</span>, normalized : <span class="param-type">boolean</span> )</span> </h3>
  25. <div class="method">
  26. <div class="description">
  27. <p>Constructs a new buffer attribute.</p>
  28. </div>
  29. <table class="params">
  30. <tbody>
  31. <tr>
  32. <td class="name"><code>array</code></td>
  33. <td class="description last"><p>The array holding the attribute data.</p></td>
  34. </tr>
  35. <tr>
  36. <td class="name"><code>itemSize</code></td>
  37. <td class="description last"><p>The item size.</p></td>
  38. </tr>
  39. <tr>
  40. <td class="name"><code>normalized</code></td>
  41. <td class="description last"><p>Whether the data are normalized or not.<br/>Default is <code>false</code>.</p></td>
  42. </tr>
  43. </tbody>
  44. </table>
  45. </div>
  46. </div>
  47. <h2 class="subsection-title">Source</h2>
  48. <p>
  49. <a href="https://github.com/mrdoob/three.js/blob/master/src/core/BufferAttribute.js" target="_blank" rel="noopener" translate="no">src/core/BufferAttribute.js</a>
  50. </p>
  51. </article>
  52. </section>
  53. <script src="../scripts/linenumber.js"></script>
  54. <script src="../scripts/page.js"></script>
  55. </body>
  56. </html>
粤ICP备19079148号