hxn

RenderEncoder

Records draw commands for one render pass. end closes it.

Static methods

function hxnAdopt(hxnRaw:Handle):RenderEncoder

An object for a value the library returned.

Properties

var hxnRaw:Handle

Methods

function setPipeline(pipeline:RenderPipeline):Void
function setVertexBuffer(buffer:Buffer, offset:Int64, index:Int):Void
function setFragmentBuffer(buffer:Buffer, offset:Int64, index:Int):Void
function setVertexBytes(bytes:Bytes, index:Int):Void

Binds a copy of bytes, up to 4 KiB, at the vertex stage's argument index.

function setFragmentBytes(bytes:Bytes, index:Int):Void

Binds a copy of bytes, up to 4 KiB, at the fragment stage's argument index.

function setFragmentTexture(texture:Texture, index:Int):Void
function setFragmentSampler(sampler:Sampler, index:Int):Void
function setViewport(x:Float, y:Float, width:Float, height:Float):Void
function draw(primitive:Primitive, start:Int, count:Int, instances:Int):Void

Draws count vertices from start, instances times.

function end():Void
function close():Void

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