@babylonjs/core
Version:
Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.
26 lines (25 loc) • 1.34 kB
TypeScript
import type { Nullable } from "../types.js";
import type { DataBuffer } from "./dataBuffer.js";
declare module "./buffer.js" {
interface VertexBuffer {
/**
* Gets the effective byte stride, that is the byte stride of the buffer that is actually sent to the GPU.
* It could be different from VertexBuffer.byteStride if a new buffer must be created under the hood because of the forceVertexBufferStrideAndOffsetMultiple4Bytes engine flag.
*/
effectiveByteStride: number;
/**
* Gets the effective byte offset, that is the byte offset of the buffer that is actually sent to the GPU.
* It could be different from VertexBuffer.byteOffset if a new buffer must be created under the hood because of the forceVertexBufferStrideAndOffsetMultiple4Bytes engine flag.
*/
effectiveByteOffset: number;
/**
* Gets the effective buffer, that is the buffer that is actually sent to the GPU.
* It could be different from VertexBuffer.getBuffer() if a new buffer must be created under the hood because of the forceVertexBufferStrideAndOffsetMultiple4Bytes engine flag.
*/
effectiveBuffer: Nullable<DataBuffer>;
/** @internal */
_alignBuffer(): void;
/** @internal */
_alignedBuffer?: Buffer;
}
}