Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/neo/backend/webgpu/data.ts>WebGPUData

👩‍💻 Matrix and other math, accelerated by WebGPU and WASM
Latest
class WebGPUData
implements Data<T>
import { WebGPUData } from "https://deno.land/x/neo@0.0.1-pre.1/backend/webgpu/data.ts";

Constructors

new
WebGPUData(
backend: WebGPUBackend,
type: T,
length: number,
usage?: number,
)

Type Parameters

optional
T extends DataType = DataType

Properties

backend: WebGPUBackend
buffer: GPUBuffer
length: number
size: number
type: T

Methods

dispose(): void
get(): Promise<DataTypeArray<T>>

Static Methods

from<T extends DataType>(
backend: WebGPUBackend,
source: DataTypeArray<T>,
type?: T,
usage?: number,
): Promise<WebGPUData<T>>