hxn

CommandEncoder

A GPUCommandEncoder, recording until Device.submit.

Static methods

function hxnAdopt(hxnRaw:Handle):CommandEncoder

An object for a value the library returned.

Properties

var hxnRaw:Handle

Methods

function beginComputePass():ComputePass

A compute pass, recording until its end.

function beginRenderPass(target:Texture, r:Float, g:Float, b:Float, a:Float):RenderPass

A render pass into target, cleared first to the color r, g, b, a.

function copyBufferToBuffer(source:Buffer, sourceOffset:Int64, destination:Buffer, destinationOffset:Int64, size:Int64):Void

Copies size bytes from source at source_offset to destination at destination_offset.

function copyTextureToBuffer(texture:Texture, buffer:Buffer, bytesPerRow:Int):Void

Copies all of texture into buffer, rows bytes_per_row apart, a multiple of 256.

function close():Void

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