GPUAdapter

open class GPUAdapter(source)

The GPUAdapter interface of the WebGPU API represents a GPU adapter. From this you can request a GPUDevice, adapter info, features, and limits. Available only in secure contexts.

MDN Reference

Properties

Link copied to clipboard

The features read-only property of the GPUAdapter interface returns a GPUSupportedFeatures object that describes additional functionality supported by the adapter.

Link copied to clipboard

The info read-only property of the GPUAdapter interface returns a GPUAdapterInfo object containing identifying information about the adapter.

Link copied to clipboard

The limits read-only property of the GPUAdapter interface returns a GPUSupportedLimits object that describes the limits supported by the adapter.

Functions

Link copied to clipboard
inline suspend fun GPUAdapter.requestDevice(): GPUDevice
inline suspend fun GPUAdapter.requestDevice(descriptor: GPUDeviceDescriptor): GPUDevice

The requestDevice() method of the GPUAdapter interface returns a Promise that fulfills with a GPUDevice object, which is the primary interface for communicating with the GPU.

Link copied to clipboard
fun requestDeviceAsync(descriptor: GPUDeviceDescriptor = definedExternally): Promise<GPUDevice>

The requestDevice() method of the GPUAdapter interface returns a Promise that fulfills with a GPUDevice object, which is the primary interface for communicating with the GPU.