GPUBuffer
class GPUBuffer
implements GPUObjectBase {
label: string | null;
destroy(): undefined;
getMappedRange(offset?: number, size?: number): ArrayBuffer;
mapAsync(
offset?: number,
size?: number,
)
: Promise<undefined>;
unmap(): undefined;
}
Properties
Methods
getMappedRange(offset?: number, size?: number): ArrayBuffer
mapAsync(
mode: GPUMapModeFlags, offset?: number, size?: number)
: Promise<undefined>