![]() |
Qt 6.x
The Qt SDK
|
\inmodule QtGui More...
#include <qrhi.h>
Public Types | |
enum | Flag { CompileShadersWithDebugInfo = 1 << 0 } |
Flag values for describing pipeline options. More... | |
![]() | |
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. | |
![]() | |
virtual | ~QRhiResource () |
Destructor. | |
virtual Type | resourceType () const =0 |
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) | |
![]() | |
QRhiResource (QRhiImplementation *rhi) | |
Protected Attributes | |
Flags | m_flags |
QRhiShaderStage | m_shaderStage |
QRhiShaderResourceBindings * | m_shaderResourceBindings = nullptr |
![]() | |
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 QSSGRhiContext::computePipeline().
|
inline |
|
overridevirtual |
Implements QRhiResource.
Definition at line 7538 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 1602 of file qrhi.h.
Referenced by QSSGRhiContext::computePipeline().
|
inline |
Sets the shader to use.
stage can only refer to the \l{QRhiShaderStage::Compute}{compute stage}.
Definition at line 1599 of file qrhi.h.
Referenced by QSSGRhiContext::computePipeline().
|
inline |
|
inline |
|
protected |
Definition at line 1606 of file qrhi.h.
Referenced by QD3D11ComputePipeline::create().
|
protected |
Definition at line 1608 of file qrhi.h.
Referenced by QVkComputePipeline::create(), QRhiD3D11::setShaderResources(), QRhiGles2::setShaderResources(), QRhiMetal::setShaderResources(), and QRhiVulkan::setShaderResources().
|
protected |
Definition at line 1607 of file qrhi.h.
Referenced by QD3D11ComputePipeline::create(), QGles2ComputePipeline::create(), QMetalComputePipeline::create(), and QVkComputePipeline::create().