hxn

Buffer

A GPUBuffer.

Static methods

function hxnAdopt(hxnRaw:Handle):Buffer

An object for a value the library returned.

Properties

var hxnRaw:Handle

Methods

function size():Int64
function read(offset:Int64, length:Int64):Future<Bytes>

Maps length bytes at offset for reading, copies them out and unmaps the buffer. The buffer needs BufferUsage.MapRead; offset is a multiple of 8, length of 4.

function close():Void

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