ComputeEncoder
Records compute commands. end closes it before the next encoder or commit.
Static methods
function hxnAdopt(hxnRaw:Handle):ComputeEncoderAn object for a value the library returned.
Properties
var hxnRaw:HandleMethods
function setPipeline(pipeline:ComputePipeline):Voidfunction setBuffer(buffer:Buffer, offset:Int64, index:Int):VoidBinds buffer at argument index: the kernel's MSL_SLOTS buffer index.
function setBytes(bytes:Bytes, index:Int):VoidBinds a copy of bytes, up to 4 KiB, at argument index.
function setTexture(texture:Texture, index:Int):Voidfunction setSampler(sampler:Sampler, index:Int):Voidfunction dispatchThreads(x:Int, y:Int, z:Int, groupX:Int, groupY:Int, groupZ:Int):VoidRuns x by y by z threads in all, in threadgroups of group_x by group_y by group_z; the last threadgroup in each dimension may be partial.
function dispatchThreadgroups(x:Int, y:Int, z:Int, groupX:Int, groupY:Int, groupZ:Int):VoidRuns x by y by z threadgroups of group_x by group_y by group_z threads.
function end():Voidfunction close():VoidReleases the native value now. The collector does it otherwise. Using this object afterwards throws.