An in-progress recording of a compute pass.

Methods

@:has_untypeddispatch(x:Int, y:Int, z:Int):Void

Dispatches compute work operations.

Parameters:

x

The number of work group to dispatch in the x dimension.

y

The number of work group to dispatch in the y dimension.

z

The number of work group to dispatch in the z dimension.

@:has_untypeddispatchIndirect(indirectBuffer:Buffer, indirectOffset:Int):Void

Indirectly dispatches compute work operations.

Parameters:

indirectBuffer

The disaptch is based on the contents of this buffer.

indirectOffset

The offset at which to start reading from indirectBuffer.

@:has_untypedendPass():Void

@:has_untypedsetBindGroup(index:Int, bindGroup:BindGroup, offsets:Array<Int>):Void

Sets the active bind group for a given bind group index.

Throws:

UseAfterDestroyException

If bindGroup was already destroyed.

@:has_untypedsetPipeline(pipeline:ComputePipeline):Void

Sets the active compute pipeline.

Parameters:

pipeline

The compute pipeline to set active.