dataBuffer.ts 569 B

12345678910111213141516171819202122
  1. /**
  2. * Class used to store gfx data (like WebGLBuffer)
  3. */
  4. export class DataBuffer {
  5. /**
  6. * Gets or sets the number of objects referencing this buffer
  7. */
  8. public references: number = 0;
  9. /** Gets or sets the size of the underlying buffer */
  10. public capacity: number = 0;
  11. /**
  12. * Gets or sets a boolean indicating if the buffer contains 32bits indices
  13. */
  14. public is32Bits: boolean = false;
  15. /**
  16. * Gets the underlying buffer
  17. */
  18. public get underlyingResource(): any {
  19. return null;
  20. }
  21. }