PySide6.QtGui.QRhiComputePipeline¶
- class QRhiComputePipeline¶
Compute pipeline state resource.
Details
Note
Setting the shader resource bindings is mandatory. The referenced
QRhiShaderResourceBindingsmust 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
QRhifor details.Added in version 6.6.
Synopsis¶
Methods¶
def
flags()def
setFlags()def
setShaderStage()def
shaderStage()
Virtual methods¶
def
create()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- class Flag¶
(inherits
enum.Flag) Flag values for describing pipeline options.Constant
Description
QRhiComputePipeline.Flag.CompileShadersWithDebugInfo
Requests compiling shaders with debug information enabled, when applicable. See
CompileShadersWithDebugInfofor more information.
- PySide6.QtGui.QRhiComputePipeline.m_flags¶
- PySide6.QtGui.QRhiComputePipeline.m_shaderStage¶
- PySide6.QtGui.QRhiComputePipeline.m_shaderResourceBindings¶
- abstract create()¶
- Return type:
bool
Returns the currently set flags.
See also
Sets the flags
f.See also
- setShaderResourceBindings(srb)¶
- Parameters:
Associates with
srbdescribing the resource binding layout and the resources (QRhiBuffer,QRhiTexture) themselves. The latter is optional. As with graphics pipelines, thesrbpassed in here can leave the actual buffer or texture objects unspecified (None) as long as there is another,layout-compatibleQRhiShaderResourceBindingsbound viasetShaderResources()before recording the dispatch call.See also
- setShaderStage(stage)¶
- Parameters:
stage –
QRhiShaderStage
Sets the shader to use.
stagecan only refer to thecompute stage.See also
- shaderResourceBindings()¶
- Return type:
Returns the currently associated
QRhiShaderResourceBindingsobject.See also
- shaderStage()¶
- Return type:
Returns the currently set shader.
See also