A handle to a physical graphics and/or compute device.

An Adapter can be used to open a connection to the corresponding device on the host system, yielding a Device object.

Constructor

@:has_untypednew(options:RequestAdapterOptions, backends:BackendBit)

Retrieves an Adapter which matches the given options.

Some options are "soft", so treated as non-mandatory. Others are "hard".

If no adapters are found that suffice all the "hard" options, None is returned.

Methods

@:has_untypeddestroy():Void

Destroy the adapter.

Using the instance after this will throw a UseAfterDestroyException exception.

Throws:

UseAfterDestroyException

If the instance was already destroyed.

@:has_untypedrequestDevice(deviceDescriptor:DeviceDescriptor):Device

Requests a connection to a physical device, creating a logical device.

Throws:

UseAfterDestroyException

If the instance was already destroyed.