Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
\inmodule QtGui More...
#include <qrhi.h>
Public Types | |
enum | Flag { CompileShadersWithDebugInfo = 1 << 0 } |
Flag values for describing pipeline options. More... | |
Public Types inherited from QRhiResource | |
enum | Type { Buffer , Texture , Sampler , RenderBuffer , RenderPassDescriptor , SwapChainRenderTarget , TextureRenderTarget , ShaderResourceBindings , GraphicsPipeline , SwapChain , ComputePipeline , CommandBuffer } |
Specifies type of the resource. More... | |
Public Member Functions | |
QRhiResource::Type | resourceType () const override |
virtual bool | create ()=0 |
Flags | flags () const |
void | setFlags (Flags f) |
Sets the flags f. | |
QRhiShaderStage | shaderStage () const |
void | setShaderStage (const QRhiShaderStage &stage) |
Sets the shader to use. | |
QRhiShaderResourceBindings * | shaderResourceBindings () const |
void | setShaderResourceBindings (QRhiShaderResourceBindings *srb) |
Associates with srb describing the resource binding layout and the resources (QRhiBuffer, QRhiTexture) themselves. | |
Public Member Functions inherited from QRhiResource | |
virtual | ~QRhiResource () |
Destructor. | |
virtual void | destroy ()=0 |
Releases (or requests deferred releasing of) the underlying native graphics resources. | |
void | deleteLater () |
When called without a frame being recorded, this function is equivalent to deleting the object. | |
QByteArray | name () const |
void | setName (const QByteArray &name) |
Sets a name for the object. | |
quint64 | globalResourceId () const |
QRhi * | rhi () const |
Protected Member Functions | |
QRhiComputePipeline (QRhiImplementation *rhi) | |
Protected Member Functions inherited from QRhiResource | |
QRhiResource (QRhiImplementation *rhi) | |
Protected Attributes | |
Flags | m_flags |
QRhiShaderStage | m_shaderStage |
QRhiShaderResourceBindings * | m_shaderResourceBindings = nullptr |
Protected Attributes inherited from QRhiResource | |
QRhiImplementation * | m_rhi = nullptr |
quint64 | m_id |
QByteArray | m_objectName |
\inmodule QtGui
Compute pipeline state resource.
Flag values for describing pipeline options.
\value CompileShadersWithDebugInfo Requests compiling shaders with debug information enabled, when applicable. See QRhiGraphicsPipeline::CompileShadersWithDebugInfo for more information.
Enumerator | |
---|---|
CompileShadersWithDebugInfo |
|
protected |
|
pure virtual |
Implemented in QD3D11ComputePipeline, QGles2ComputePipeline, QMetalComputePipeline, QNullComputePipeline, and QVkComputePipeline.
Referenced by QSSGRhiContextPrivate::computePipeline().
|
inline |
|
overridevirtual |
Implements QRhiResource.
Definition at line 7865 of file qrhi.cpp.
References QRhiResource::ComputePipeline.
|
inline |
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, \l{QRhiShaderResourceBindings::isLayoutCompatible()}{layout-compatible} QRhiShaderResourceBindings bound via \l{QRhiCommandBuffer::setShaderResources()}{setShaderResources()} before recording the dispatch call.
Definition at line 1639 of file qrhi.h.
Referenced by QSSGRhiContextPrivate::computePipeline().
|
inline |
Sets the shader to use.
stage can only refer to the \l{QRhiShaderStage::Compute}{compute stage}.
Definition at line 1636 of file qrhi.h.
Referenced by QSSGRhiContextPrivate::computePipeline().
|
inline |
|
inline |
|
protected |
Definition at line 1643 of file qrhi.h.
Referenced by QD3D11ComputePipeline::create().
|
protected |
Definition at line 1645 of file qrhi.h.
Referenced by QVkComputePipeline::create().
|
protected |
Definition at line 1644 of file qrhi.h.
Referenced by QD3D11ComputePipeline::create(), QGles2ComputePipeline::create(), QMetalComputePipeline::create(), and QVkComputePipeline::create().