hxn

CommandEncoder

Records passes and copies for GpuDevice.submit. Only one pass can be open at a time.

Methods

function beginComputePass():ComputePass
function beginRenderPass(target:Texture, ?clear:Null<Color>):RenderPass

Begins a render pass into target. The pass first clears target to clear, which defaults to transparent black.

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