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

x/neo/backend/wasm/data.ts>WasmData

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

Constructors

new
WasmData(
backend: WasmBackend,
type: T,
length: number,
)

Type Parameters

optional
T extends DataType = DataType

Properties

active: boolean
readonly
backend: WasmBackend
readonly
data: DataTypeArray<T>
length: number
ptr: number
size: number
readonly
type: T

Methods

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

Static Methods

from<T extends DataType>(
backend: WasmBackend,
source: DataTypeArray<T>,
type?: T,
): Promise<WasmData<T>>