QRhiComputePipeline Class
Recurso de estado de la tubería de cálculo. Más...
| Cabecera: | #include <rhi/qrhi.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS GuiPrivate)target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate) |
| qmake: | QT += gui-private |
| Desde: | Qt 6.6 |
| Hereda: | QRhiResource |
Tipos Públicos
Funciones Públicas
| QRhiComputePipeline::Flags | flags() const |
| void | setFlags(QRhiComputePipeline::Flags f) |
| void | setShaderResourceBindings(QRhiShaderResourceBindings *srb) |
| void | setShaderStage(const QRhiShaderStage &stage) |
| QRhiShaderResourceBindings * | shaderResourceBindings() const |
| QRhiShaderStage | shaderStage() const |
Funciones Públicas Reimplementadas
| virtual QRhiResource::Type | resourceType() const override |
Descripción Detallada
Nota: La configuración de los recursos de sombreado es obligatoria. El QRhiShaderResourceBindings referenciado debe tener ya created() llamado en el momento en que create() es llamado.
Nota : Es obligatorio definir el sombreador.
Nota: Esta es una API RHI con garantías de compatibilidad limitadas, consulte QRhi para más detalles.
Documentación de tipos de miembros
enum QRhiComputePipeline::Flag
flags QRhiComputePipeline::Flags
Valores de bandera para describir las opciones del pipeline.
| Constante | Valor | Descripción |
|---|---|---|
QRhiComputePipeline::CompileShadersWithDebugInfo | 1 << 0 | Solicita compilar los shaders con la información de depuración habilitada, cuando sea aplicable. Ver QRhiGraphicsPipeline::CompileShadersWithDebugInfo para más información. |
El tipo Flags es un typedef para QFlags<Flag>. Almacena una combinación OR de valores Flag.
Documentación de la Función Miembro
QRhiComputePipeline::Flags QRhiComputePipeline::flags() const
Devuelve las banderas configuradas actualmente.
Véase también setFlags().
[override virtual] QRhiResource::Type QRhiComputePipeline::resourceType() const
Reimplementa: QRhiResource::resourceType() const.
Devuelve el tipo de recurso.
void QRhiComputePipeline::setFlags(QRhiComputePipeline::Flags f)
Establece las banderas f.
Véase también flags().
void QRhiComputePipeline::setShaderResourceBindings(QRhiShaderResourceBindings *srb)
Se asocia con srb describiendo el diseño de la vinculación de recursos y los propios recursos (QRhiBuffer, QRhiTexture). Esto último es opcional. Al igual que con los conductos gráficos, el srb pasado aquí puede dejar el búfer real o los objetos de textura sin especificar (nullptr) siempre y cuando haya otro, layout-compatible QRhiShaderResourceBindings vinculado a través de setShaderResources() antes de grabar la llamada de despacho.
Véase también shaderResourceBindings().
void QRhiComputePipeline::setShaderStage(const QRhiShaderStage &stage)
Establece el shader a utilizar. stage sólo puede referirse a compute stage.
Véase también shaderStage().
QRhiShaderResourceBindings *QRhiComputePipeline::shaderResourceBindings() const
Devuelve el objeto QRhiShaderResourceBindings asociado actualmente.
Véase también setShaderResourceBindings().
QRhiShaderStage QRhiComputePipeline::shaderStage() const
Devuelve el sombreador configurado actualmente.
Véase también 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.