![]() |
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>
Classes | |
| struct | BoundUniformBufferData |
| struct | BoundSampledTextureData |
| struct | BoundStorageImageData |
| struct | BoundStorageBufferData |
| struct | BoundResourceData |
Public Member Functions | |
| QMetalShaderResourceBindings (QRhiImplementation *rhi) | |
| ~QMetalShaderResourceBindings () | |
| void | destroy () override |
| Releases (or requests deferred releasing of) the underlying native graphics resources. | |
| bool | create () override |
| Creates the corresponding resource binding set. | |
| void | updateResources (UpdateFlags flags) override |
| Public Member Functions inherited from QRhiShaderResourceBindings | |
| QRhiResource::Type | resourceType () const override |
| void | setBindings (std::initializer_list< QRhiShaderResourceBinding > list) |
| Sets the list of bindings. | |
| template<typename InputIterator> | |
| void | setBindings (InputIterator first, InputIterator last) |
| Sets the list of bindings from the iterators first and last. | |
| const QRhiShaderResourceBinding * | cbeginBindings () const |
| const QRhiShaderResourceBinding * | cendBindings () const |
| const QRhiShaderResourceBinding * | bindingAt (qsizetype index) const |
| qsizetype | bindingCount () const |
| bool | isLayoutCompatible (const QRhiShaderResourceBindings *other) const |
| QVector< quint32 > | serializedLayoutDescription () const |
| 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 | |
| QVarLengthArray< QRhiShaderResourceBinding, 8 > | sortedBindings |
| int | maxBinding = -1 |
| QVarLengthArray< BoundResourceData, 8 > | boundResourceData |
| QMetalGraphicsPipeline * | lastUsedGraphicsPipeline = nullptr |
| QMetalComputePipeline * | lastUsedComputePipeline = nullptr |
| uint | generation = 0 |
Friends | |
| class | QRhiMetal |
Definition at line 206 of file qrhimetal_p.h.
| QMetalShaderResourceBindings::QMetalShaderResourceBindings | ( | QRhiImplementation * | rhi | ) |
Definition at line 5869 of file qrhimetal.mm.
References QMetalShaderResourceBindings().
Referenced by QMetalShaderResourceBindings().
| QMetalShaderResourceBindings::~QMetalShaderResourceBindings | ( | ) |
Definition at line 5874 of file qrhimetal.mm.
References destroy().
|
overridevirtual |
Creates the corresponding resource binding set.
Depending on the underlying graphics API, this may involve creating native graphics resources, and therefore it should not be assumed that this is a cheap operation.
If create() has been called before with no corresponding destroy(), then destroy() is called implicitly first.
true when successful, false when failed. Regardless of the return value, calling destroy() is always safe. Implements QRhiShaderResourceBindings.
Definition at line 5889 of file qrhimetal.mm.
References destroy(), and maxBinding.
|
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 5879 of file qrhimetal.mm.
References maxBinding.
Referenced by ~QMetalShaderResourceBindings(), and create().
|
overridevirtual |
Implements QRhiShaderResourceBindings.
Definition at line 5917 of file qrhimetal.mm.
|
friend |
Definition at line 251 of file qrhimetal_p.h.
| QVarLengthArray<BoundResourceData, 8> QMetalShaderResourceBindings::boundResourceData |
Definition at line 246 of file qrhimetal_p.h.
| uint QMetalShaderResourceBindings::generation = 0 |
Definition at line 250 of file qrhimetal_p.h.
| QMetalComputePipeline* QMetalShaderResourceBindings::lastUsedComputePipeline = nullptr |
Definition at line 248 of file qrhimetal_p.h.
Referenced by QRhiMetal::setShaderResources().
| QMetalGraphicsPipeline* QMetalShaderResourceBindings::lastUsedGraphicsPipeline = nullptr |
Definition at line 247 of file qrhimetal_p.h.
Referenced by QRhiMetal::setShaderResources().
| int QMetalShaderResourceBindings::maxBinding = -1 |
Definition at line 215 of file qrhimetal_p.h.
Referenced by create(), destroy(), QMetalGraphicsPipelineData::setupStageInputDescriptor(), QMetalGraphicsPipelineData::setupVertexInputDescriptor(), and QRhiMetal::setVertexInput().
| QVarLengthArray<QRhiShaderResourceBinding, 8> QMetalShaderResourceBindings::sortedBindings |
Definition at line 214 of file qrhimetal_p.h.