Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/daybreak/src/wgpu/mod.ts>WGPUAdapter

[WIP] WebGPU API implementation for Deno, built using Dawn with FFI.
Latest
class WGPUAdapter
import { WGPUAdapter } from "https://deno.land/x/daybreak@0.1.2/src/wgpu/mod.ts";

Constructors

new
WGPUAdapter(ptr: Deno.UnsafePointer)

Methods

createDevice(descriptor: wgpu.WGPUDeviceDescriptor): wgpu.WGPUDevice
enumerateFeatures(features: wgpu.WGPUFeatureName): BigInt
getLimits(limits: wgpu.WGPUSupportedLimits): boolean
getProperties(properties: wgpu.WGPUAdapterProperties): void
hasFeature(feature: wgpu.WGPUFeatureName): boolean
requestDevice(
descriptor: wgpu.WGPUDeviceDescriptor,
callback: any,
userdata: unknown,
): void