On this page

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

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.