W3cubDocs

/Deno

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;
}

Implements

Properties

label: string | null

Methods

destroy(): undefined
getMappedRange(offset?: number, size?: number): ArrayBuffer
mapAsync(mode: GPUMapModeFlags, offset?: number, size?: number): Promise<undefined>
unmap(): undefined

© 2018–2021 the Deno authors
https://doc.deno.land/deno/stable/~/GPUBuffer