Compute pipeline state resource. More...
| Header: | #include <rhi/qrhi.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui)target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate) |
| qmake: | QT += gui-private |
| Since: | Qt 6.6 |
| Inherits: | QRhiResource |
| QRhiComputePipeline::Flags | flags() const |
| void | setFlags(QRhiComputePipeline::Flags f) |
| void | setShaderResourceBindings(QRhiShaderResourceBindings *srb) |
| void | setShaderStage(const QRhiShaderStage &stage) |
| QRhiShaderResourceBindings * | shaderResourceBindings() const |
| QRhiShaderStage | shaderStage() const |
| virtual QRhiResource::Type | resourceType() const override |
Note: Setting the shader resource bindings is mandatory. The referenced QRhiShaderResourceBindings must already have created() called on it by the time create() is called.
Note: Setting the shader is mandatory.
Note: This is a RHI API with limited compatibility guarantees, see QRhi for details.
Flag values for describing pipeline options.
| Constant | Value | Description |
|---|---|---|
QRhiComputePipeline::CompileShadersWithDebugInfo |
1 << 0 |
Requests compiling shaders with debug information enabled, when applicable. See QRhiGraphicsPipeline::CompileShadersWithDebugInfo for more information. |
The Flags type is a typedef for QFlags<Flag>. It stores an OR combination of Flag values.
Returns the currently set flags.
See also setFlags().
[override virtual] QRhiResource::Type
QRhiComputePipeline::resourceType() constReimplements: QRhiResource::resourceType() const.
Returns the resource type.
Sets the flags f.
See also flags().
Associates with srb describing the resource binding layout and the resources (QRhiBuffer, QRhiTexture) themselves. The latter is
optional. As with graphics pipelines, the srb passed in here can leave the actual buffer or texture objects unspecified (nullptr) as long as there is another, layout-compatible QRhiShaderResourceBindings bound via setShaderResources() before recording the dispatch call.
See also shaderResourceBindings().
Sets the shader to use. stage can only refer to the compute stage.
See also shaderStage().
Returns the currently associated QRhiShaderResourceBindings object.
See also setShaderResourceBindings().
Returns the currently set shader.
See also setShaderStage().
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: