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

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

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

Constructors

new
WGPUAdapter(ptr: Deno.UnsafePointer)

Methods

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