commandBuffer

fun commandBuffer(size: UInt, session: Session? = Session.active): CommandBuffer<Command>(source)

Creates and returns a new instance of a command buffer with the specified size and session.

Return

A new instance of CommandBuffer<Command> configured with the provided parameters.

Parameters

size

The size of the command buffer, specified as an unsigned integer.

session

The session to associate with the command buffer. If no session is provided, it defaults to the active session.