![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qrhimetal_p.h>
Public Member Functions | |
| QMetalComputePipeline (QRhiImplementation *rhi) | |
| ~QMetalComputePipeline () | |
| 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 |
Public Attributes | |
| QMetalComputePipelineData * | d |
| uint | generation = 0 |
| int | lastActiveFrameSlot = -1 |
Friends | |
| class | QRhiMetal |
Definition at line 280 of file qrhimetal_p.h.
| QMetalComputePipeline::QMetalComputePipeline | ( | QRhiImplementation * | rhi | ) |
Definition at line 7542 of file qrhimetal.mm.
References QMetalComputePipeline(), and d.
Referenced by QMetalComputePipeline().
| QMetalComputePipeline::~QMetalComputePipeline | ( | ) |
|
overridevirtual |
Implements QRhiComputePipeline.
Definition at line 7596 of file qrhimetal.mm.
References QMetalComputePipelineData::bufferSizeBuffer, QMetalBuffer::create(), d, QRhiMetal::d, destroy(), and lastActiveFrameSlot.
|
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 7554 of file qrhimetal.mm.
References QMetalComputePipelineData::bufferSizeBuffer, QRhiMetalData::DeferredReleaseEntry::ComputePipeline, d, QRhiMetal::d, lastActiveFrameSlot, QRhiMetalData::DeferredReleaseEntry::lastActiveFrameSlot, and QRhiMetalData::DeferredReleaseEntry::type.
Referenced by ~QMetalComputePipeline(), and create().
|
friend |
Definition at line 290 of file qrhimetal_p.h.
| QMetalComputePipelineData* QMetalComputePipeline::d |
Definition at line 287 of file qrhimetal_p.h.
Referenced by QMetalComputePipeline(), ~QMetalComputePipeline(), create(), destroy(), and QRhiMetal::setShaderResources().
| uint QMetalComputePipeline::generation = 0 |
Definition at line 288 of file qrhimetal_p.h.
| int QMetalComputePipeline::lastActiveFrameSlot = -1 |
Definition at line 289 of file qrhimetal_p.h.