hxn

Instance

A Vulkan instance: the loader, and the GPUs it finds.

Static methods

function hxnAdopt(hxnRaw:Handle):Instance

An object for a value the library returned.

function create(name:String):Instance

An instance for the application name. Fails where no Vulkan loader or driver is installed. Asks for Vulkan 1.3, which the driver may lower.

Properties

var hxnRaw:Handle

Methods

function adapterNames():Array<String>

The name of each GPU, in the order createDevice takes them.

function createDevice(index:Int):Device

A device on GPU index, with one queue that does graphics and compute. Fails if the GPU lacks dynamic rendering or synchronization2.

function createSurface(platform:Int, wa:Int64, wb:Int64, da:Int64, db:Int64):Surface

A surface on the window that hxn-window's platform() and raw(0) to raw(3) describe: 1 AppKit, 2 Win32, 3 Xlib, 4 Wayland, 5 Android or 6 UIKit.

function close():Void

Releases the native value now. The collector does it otherwise. Using this object afterwards throws.