buffer.align.d.ts 1.3 KB

12345678910111213141516171819202122232425
  1. import type { Nullable } from "../types.js";
  2. import type { DataBuffer } from "./dataBuffer";
  3. declare module "./buffer" {
  4. interface VertexBuffer {
  5. /**
  6. * Gets the effective byte stride, that is the byte stride of the buffer that is actually sent to the GPU.
  7. * It could be different from VertexBuffer.byteStride if a new buffer must be created under the hood because of the forceVertexBufferStrideAndOffsetMultiple4Bytes engine flag.
  8. */
  9. effectiveByteStride: number;
  10. /**
  11. * Gets the effective byte offset, that is the byte offset of the buffer that is actually sent to the GPU.
  12. * It could be different from VertexBuffer.byteOffset if a new buffer must be created under the hood because of the forceVertexBufferStrideAndOffsetMultiple4Bytes engine flag.
  13. */
  14. effectiveByteOffset: number;
  15. /**
  16. * Gets the effective buffer, that is the buffer that is actually sent to the GPU.
  17. * It could be different from VertexBuffer.getBuffer() if a new buffer must be created under the hood because of the forceVertexBufferStrideAndOffsetMultiple4Bytes engine flag.
  18. */
  19. effectiveBuffer: Nullable<DataBuffer>;
  20. /** @internal */
  21. _alignBuffer(): void;
  22. /** @internal */
  23. _alignedBuffer?: Buffer;
  24. }
  25. }