QRhiComputePipeline Class

Compute pipeline state resource. More...

Header: #include <QRhiComputePipeline>
qmake: QT += rhi
Inherits: QRhiResource

Public Functions

virtual bool build() = 0
void setShaderResourceBindings(QRhiShaderResourceBindings *srb)
void setShaderStage(const QRhiShaderStage &stage)
QRhiShaderResourceBindings *shaderResourceBindings() const
QRhiShaderStage shaderStage() const

Reimplemented Public Functions

virtual QRhiResource::Type resourceType() const override

Protected Variables

QRhiShaderResourceBindings *m_shaderResourceBindings
QRhiShaderStage m_shaderStage

Additional Inherited Members

Detailed Description

Compute pipeline state resource.

Note: Setting the shader resource bindings is mandatory. The referenced QRhiShaderResourceBindings must already be built by the time build() is called.

Note: Setting the shader is mandatory.

Member Type Documentation

Property Documentation

Member Function Documentation

[pure virtual] bool QRhiComputePipeline::build()

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

Reimplemented from QRhiResource::resourceType().

Returns the resource type.

void QRhiComputePipeline::setShaderResourceBindings(QRhiShaderResourceBindings *srb)

See also shaderResourceBindings().

void QRhiComputePipeline::setShaderStage(const QRhiShaderStage &stage)

See also shaderStage().

QRhiShaderResourceBindings *QRhiComputePipeline::shaderResourceBindings() const

See also setShaderResourceBindings().

QRhiShaderStage QRhiComputePipeline::shaderStage() const

See also setShaderStage().

Member Variable Documentation

Related Non-Members

Macro Documentation