GPU
GPU programming and rendering. Efficiently use a device’s graphics processing unit (GPU) for high-performance computations and complex image rendering.
Eg GPUDevice
Classes
c
Deno.UnsafeWindowSurface
Creates a presentable WebGPU surface from given window and display handles.
Functions
f
f
Namespaces
N
Deno.webgpu
The webgpu namespace provides additional APIs that the WebGPU specification does not specify.
class Deno.UnsafeWindowSurface
unstable
Creates a presentable WebGPU surface from given window and display handles.
The parameters correspond to the table below:
| system | winHandle | displayHandle |
|---|---|---|
| "cocoa" (macOS) | - | NSView* |
| "win32" (Windows) | HWND |
HINSTANCE |
| "x11" (Linux) | Xlib Window |
Xlib Display* |
| "wayland" (Linux) | wl_surface* |
wl_display* |
Constructors #
#UnsafeWindowSurface(options: { system: "cocoa"
| "win32"
| "x11"
| "wayland"; windowHandle: Deno.PointerValue<unknown>; displayHandle: Deno.PointerValue<unknown>; width: number; height: number; }) new
Properties #
Methods #
#getContext(contextId: OffscreenRenderingContextId,options?: any,): OffscreenRenderingContext | null function Deno.webgpu.deviceStartCapture
unstable
function Deno.webgpu.deviceStopCapture
unstable
namespace Deno.webgpu
unstable
The webgpu namespace provides additional APIs that the WebGPU specification does not specify.
Functions #
f
f