dataBuffer.js 726 B

1234567891011121314151617181920212223242526272829
  1. /**
  2. * Class used to store gfx data (like WebGLBuffer)
  3. */
  4. export class DataBuffer {
  5. /**
  6. * Gets the underlying buffer
  7. */
  8. get underlyingResource() {
  9. return null;
  10. }
  11. /**
  12. * Constructs the buffer
  13. */
  14. constructor() {
  15. /**
  16. * Gets or sets the number of objects referencing this buffer
  17. */
  18. this.references = 0;
  19. /** Gets or sets the size of the underlying buffer */
  20. this.capacity = 0;
  21. /**
  22. * Gets or sets a boolean indicating if the buffer contains 32bits indices
  23. */
  24. this.is32Bits = false;
  25. this.uniqueId = DataBuffer._Counter++;
  26. }
  27. }
  28. DataBuffer._Counter = 0;
  29. //# sourceMappingURL=dataBuffer.js.map