hxn

OpenOptions

Fields

final warn:Null<(String) -> Void>

Receives the warning open gives when a backend fails to open and a later one is used. By default it goes through hxn.Log with target hxn.gpu. Pass _ -> {} to drop it.

final surface:Null<SurfaceTarget>

The window or canvas the device will present to. OpenGL ES and WebGL2 make their context for it, so createSurface there takes only this target; the other backends present to any.

final required:Null<Features>

Features the device must have. Backends without them are skipped.

final backends:Null<Array<Backend>>

The backends to try, in order. Overrides HXN_GPU_BACKEND, -D hxn_gpu_backend and the platform's default order, which GpuDevice.defaultBackends() returns.