On this page

QRhiIndirectDrawCommand Struct

Draw 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.12

Public Variables

quint32 firstInstance
quint32 firstVertex
quint32 instanceCount
quint32 vertexCount

Detailed Description

A draw command that can be uploaded to a QRhiBuffer of usage QRhiBuffer::UsageFlag::IndirectBuffer.

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

See also QRhiCommandBuffer::drawIndirect().

Member Variable Documentation

quint32 QRhiIndirectDrawCommand::firstInstance

quint32 QRhiIndirectDrawCommand::firstVertex

quint32 QRhiIndirectDrawCommand::instanceCount

quint32 QRhiIndirectDrawCommand::vertexCount

© 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.