Layer
A CAMetalLayer on a window's view, whose drawables a render pass targets.
Static methods
function hxnAdopt(hxnRaw:Handle):LayerAn object for a value the library returned.
function attach(device:Device, view:Int64, format:PixelFormat):LayerA layer drawing with device into the view view: an NSView on macOS (hxn-window's raw(0) on AppKit) or a UIView on iOS (raw(0) on UIKit). Only on the main thread.
Properties
var hxnRaw:HandleMethods
function setDrawableSize(width:Float, height:Float):VoidSets the size, in pixels, of the drawables the layer gives.
function nextDrawable():Null<Drawable>The next drawable to render into, or null when none is free in time.
function close():VoidReleases the native value now. The collector does it otherwise. Using this object afterwards throws.