In questa pagina

QRhiComputePipeline Class

Calcola la risorsa dello stato della pipeline. Altro...

Intestazione: #include <rhi/qrhi.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS GuiPrivate)
target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate)
qmake: QT += gui-private
A partire da: Qt 6.6
Eredita da: QRhiResource

Tipi pubblici

enum Flag { CompileShadersWithDebugInfo }
flags Flags

Funzioni pubbliche

QRhiComputePipeline::Flags flags() const
void setFlags(QRhiComputePipeline::Flags f)
void setShaderResourceBindings(QRhiShaderResourceBindings *srb)
void setShaderStage(const QRhiShaderStage &stage)
QRhiShaderResourceBindings *shaderResourceBindings() const
QRhiShaderStage shaderStage() const

Funzioni pubbliche reimplementate

virtual QRhiResource::Type resourceType() const override

Descrizione dettagliata

Nota: è obbligatorioimpostare i collegamenti delle risorse dello shader. L'QRhiShaderResourceBindings e a cui si fa riferimento deve aver già ricevuto la chiamata a `create()` al momento della chiamata a `create()`.

Nota: l'impostazione dello shader è obbligatoria.

Nota: si tratta di un'API RHI con garanzie di compatibilità limitate; per ulteriori dettagli, consultare QRhi.

Documentazione sui tipi dei membri

enum QRhiComputePipeline::Flag
flags QRhiComputePipeline::Flags

Valori dei flag per la definizione delle opzioni della pipeline.

CostanteValoreDescrizione
QRhiComputePipeline::CompileShadersWithDebugInfo1 << 0Richiede la compilazione degli shader con le informazioni di debug abilitate, ove applicabile. Per ulteriori informazioni, consultare QRhiGraphicsPipeline::CompileShadersWithDebugInfo.

Il tipo Flags è un typedef per QFlags<Flag>. Memorizza una combinazione OR di valori Flag.

Documentazione delle funzioni membro

QRhiComputePipeline::Flags QRhiComputePipeline::flags() const

Restituisce i flag attualmente impostati.

Vedi anche setFlags().

[override virtual] QRhiResource::Type QRhiComputePipeline::resourceType() const

Reimplementa: ` QRhiResource::resourceType()` const.

Restituisce il tipo di risorsa.

void QRhiComputePipeline::setFlags(QRhiComputePipeline::Flags f)

Imposta i flag f.

Vedi anche flags().

void QRhiComputePipeline::setShaderResourceBindings(QRhiShaderResourceBindings *srb)

Si associa a ` srb `, che descrive il layout di associazione delle risorse e le risorse stesse (QRhiBuffer, QRhiTexture). Quest’ultimo è facoltativo. Come nel caso delle pipeline grafiche, l’` srb ` passato qui può lasciare non specificati gli oggetti buffer o texture effettivi (nullptr), purché ne esista un altro, ` layout-compatible ` QRhiShaderResourceBindings, associato tramite ` setShaderResources()` prima della registrazione della chiamata di dispatch.

Vedi anche shaderResourceBindings().

void QRhiComputePipeline::setShaderStage(const QRhiShaderStage &stage)

Imposta lo shader da utilizzare. L'stage può fare riferimento solo a compute stage.

Vedi anche shaderStage().

QRhiShaderResourceBindings *QRhiComputePipeline::shaderResourceBindings() const

Restituisce l'oggetto ` QRhiShaderResourceBindings ` attualmente associato.

Vedi anche setShaderResourceBindings().

QRhiShaderStage QRhiComputePipeline::shaderStage() const

Restituisce lo shader attualmente impostato.

Vedi anche setShaderStage().

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