RenderEncoder
Records draw commands for one render pass. end closes it.
Static methods
function hxnAdopt(hxnRaw:Handle):RenderEncoderAn object for a value the library returned.
Properties
var hxnRaw:HandleMethods
function setPipeline(pipeline:RenderPipeline):Voidfunction setVertexBuffer(buffer:Buffer, offset:Int64, index:Int):Voidfunction setFragmentBuffer(buffer:Buffer, offset:Int64, index:Int):Voidfunction setVertexBytes(bytes:Bytes, index:Int):VoidBinds a copy of bytes, up to 4 KiB, at the vertex stage's argument index.
function setFragmentBytes(bytes:Bytes, index:Int):VoidBinds a copy of bytes, up to 4 KiB, at the fragment stage's argument index.
function setFragmentTexture(texture:Texture, index:Int):Voidfunction setFragmentSampler(sampler:Sampler, index:Int):Voidfunction setViewport(x:Float, y:Float, width:Float, height:Float):Voidfunction draw(primitive:Primitive, start:Int, count:Int, instances:Int):VoidDraws count vertices from start, instances times.
function end():Voidfunction close():VoidReleases the native value now. The collector does it otherwise. Using this object afterwards throws.