hxn

Factory

The DXGI factory: the adapters, WARP included.

Static methods

function hxnAdopt(hxnRaw:Handle):Factory

An object for a value the library returned.

function create():Factory

Properties

var hxnRaw:Handle

Methods

function adapterNames():Array<String>

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

function isSoftware(index:Int):Bool

Whether adapter index is a software one, such as WARP.

function createSwapchain(device:Device, window:Int64, width:Int, height:Int, format:Format, count:Int):Swapchain

A flip-model swap chain of count buffers on the window window (an HWND, which hxn-window's raw(0) gives on Win32), presented by device's queue.

function createDevice(index:Int):Device

A device on adapter index, at feature level 11.0, with one direct queue.

function close():Void

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