QRhiDispatchIndirectCommand Struct

Compute dispatch command. More...

Header: #include <rhi/qrhi.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS GuiPrivate)
target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate)
qmake: QT += gui-private
Since: Qt 6.13

Public Variables

quint32 x
quint32 y
quint32 z

Detailed Description

A compute dispatch command that can be uploaded to a QRhiBuffer of usage QRhiBuffer::UsageFlag::IndirectBuffer. The fields specify the number of local work groups along each dimension and have the same meaning as the x, y, z parameters of QRhiCommandBuffer::dispatch().

y and z default to 1, so a one dimensional dispatch only needs x to be set. Note that a count of 0 in any dimension is valid and results in no work groups being launched at all.

Note: This is a RHI API with limited compatibility guarantees, see QRhi for details.

See also QRhiCommandBuffer::dispatchIndirect().

Member Variable Documentation

quint32 QRhiDispatchIndirectCommand::x

quint32 QRhiDispatchIndirectCommand::y

quint32 QRhiDispatchIndirectCommand::z