Instance
A Vulkan instance: the loader, and the GPUs it finds.
Static methods
function hxnAdopt(hxnRaw:Handle):InstanceAn object for a value the library returned.
function create(name:String):InstanceAn 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:HandleMethods
function adapterNames():Array<String>The name of each GPU, in the order createDevice takes them.
function createDevice(index:Int):DeviceA 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):SurfaceA 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():VoidReleases the native value now. The collector does it otherwise. Using this object afterwards throws.