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

x/neko/webgpu/mod.ts>GPUWorld

frame buffer deno module built on top of mini_fb with canvas api implementation and a webgpu renderer
Latest
class GPUWorld
import { GPUWorld } from "https://deno.land/x/neko@1.1.3/webgpu/mod.ts";

Constructors

new
GPUWorld(
dimensions: Dimensions,
device: GPUDevice,
title?,
)

Properties

device: GPUDevice
dimensions: Dimensions
firstRender: boolean
neko: Neko

Methods

start(settingsOrFps?: number | WorldSettings)
startSync(_settingsOrFps?: number | WorldSettings)

Static Methods

getDevice(unnamed 0?: { requiredFeatures?: GPUFeatureName[]; optionalFeatures?: GPUFeatureName[]; }): Promise<GPUDevice>