ZWebGPUQueue

class ZWebGPUQueue(val queue: GPUQueue)(source)

A wrapper class for GPUQueue to provide additional functionality and type-safe operations in the Zernikalos WebGPU rendering context.

Constructors

Link copied to clipboard
constructor(queue: GPUQueue)

Properties

Link copied to clipboard

The underlying native GPUQueue object

Functions

Link copied to clipboard
Link copied to clipboard

Copies the underlying native GPUQueue object.

Link copied to clipboard
fun submit(commandBuffers: Array<GPUCommandBuffer>)

Submits the given command encoders to the GPU queue for execution.

Link copied to clipboard
inline fun <R> withQueue(block: (GPUQueue) -> R): R

Provides direct access to the underlying queue for advanced operations.

Link copied to clipboard
fun writeBuffer(buffer: GPUBuffer, offset: Int, dataArray: Any)

Writes buffer data to the GPU.