PySide6.QtGui.QRhiComputePipeline

class QRhiComputePipeline

Compute pipeline state resource.

Details

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.

Inheritance diagram of PySide6.QtGui.QRhiComputePipeline

Added in version 6.6.

Synopsis

Methods

Virtual methods

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 CompileShadersWithDebugInfo for more information.

PySide6.QtGui.QRhiComputePipeline.m_flags
PySide6.QtGui.QRhiComputePipeline.m_shaderStage
PySide6.QtGui.QRhiComputePipeline.m_shaderResourceBindings
abstract create()
Return type:

bool

flags()
Return type:

Combination of Flag

Returns the currently set flags.

See also

setFlags()

setFlags(f)
Parameters:

f – Combination of Flag

Sets the flags f.

See also

flags()

setShaderResourceBindings(srb)
Parameters:

srbQRhiShaderResourceBindings

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 (None) as long as there is another, layout-compatible QRhiShaderResourceBindings bound via setShaderResources() before recording the dispatch call.

setShaderStage(stage)
Parameters:

stageQRhiShaderStage

Sets the shader to use. stage can only refer to the compute stage .

See also

shaderStage()

shaderResourceBindings()
Return type:

QRhiShaderResourceBindings

Returns the currently associated QRhiShaderResourceBindings object.

shaderStage()
Return type:

QRhiShaderStage

Returns the currently set shader.

See also

setShaderStage()