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>.
|
#include <qrhinull_p.h>
Public Member Functions | |
QNullComputePipeline (QRhiImplementation *rhi) | |
~QNullComputePipeline () | |
void | destroy () override |
Releases (or requests deferred releasing of) the underlying native graphics resources. | |
bool | create () override |
Public Member Functions inherited from QRhiComputePipeline | |
QRhiResource::Type | resourceType () const override |
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. | |
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 |
Additional Inherited Members | |
Public Types inherited from QRhiComputePipeline | |
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... | |
Protected Member Functions inherited from QRhiComputePipeline | |
QRhiComputePipeline (QRhiImplementation *rhi) | |
Protected Member Functions inherited from QRhiResource | |
QRhiResource (QRhiImplementation *rhi) | |
Protected Attributes inherited from QRhiComputePipeline | |
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 |
Definition at line 136 of file qrhinull_p.h.
QNullComputePipeline::QNullComputePipeline | ( | QRhiImplementation * | rhi | ) |
Definition at line 936 of file qrhinull.cpp.
QNullComputePipeline::~QNullComputePipeline | ( | ) |
Definition at line 941 of file qrhinull.cpp.
References destroy().
|
overridevirtual |
Implements QRhiComputePipeline.
Definition at line 953 of file qrhinull.cpp.
References QRHI_RES_RHI.
|
overridevirtual |
Releases (or requests deferred releasing of) the underlying native graphics resources.
Safe to call multiple times, subsequent invocations will be a no-op then.
Once destroy() is called, the QRhiResource instance can be reused, by calling create()
again. That will then result in creating new native graphics resources underneath.
The QRhiResource destructor also performs the same task, so calling this function is not necessary before deleting a QRhiResource.
Implements QRhiResource.
Definition at line 946 of file qrhinull.cpp.
References QRHI_RES_RHI.
Referenced by ~QNullComputePipeline().