![]() |
Qt 6.x
The Qt SDK
|
#include <qrhigles2_p.h>
Public Member Functions | |
QGles2ShaderResourceBindings (QRhiImplementation *rhi) | |
~QGles2ShaderResourceBindings () | |
void | destroy () override |
Releases (or requests deferred releasing of) the underlying native graphics resources. | |
bool | create () override |
void | updateResources (UpdateFlags flags) override |
![]() | |
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 |
virtual bool | create ()=0 |
virtual void | updateResources (UpdateFlags flags={})=0 |
![]() | |
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 |
Public Attributes | |
bool | hasDynamicOffset = false |
uint | generation = 0 |
Friends | |
class | QRhiGles2 |
Definition at line 220 of file qrhigles2_p.h.
QGles2ShaderResourceBindings::QGles2ShaderResourceBindings | ( | QRhiImplementation * | rhi | ) |
Definition at line 5764 of file qrhigles2.cpp.
QGles2ShaderResourceBindings::~QGles2ShaderResourceBindings | ( | ) |
Definition at line 5769 of file qrhigles2.cpp.
References destroy().
|
overridevirtual |
Implements QRhiShaderResourceBindings.
Definition at line 5781 of file qrhigles2.cpp.
References QVarLengthArray< T, Prealloc >::at(), generation, hasDynamicOffset, i, QRhiShaderResourceBindings::m_bindings, QRHI_RES_RHI, QRhiImplementation::shaderResourceBindingData(), QVLABaseBase::size(), and QRhiShaderResourceBinding::UniformBuffer.
|
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 5774 of file qrhigles2.cpp.
References QRHI_RES_RHI.
Referenced by ~QGles2ShaderResourceBindings().
|
overridevirtual |
Implements QRhiShaderResourceBindings.
Definition at line 5805 of file qrhigles2.cpp.
References generation, and Q_UNUSED.
|
friend |
Definition at line 230 of file qrhigles2_p.h.
uint QGles2ShaderResourceBindings::generation = 0 |
Definition at line 229 of file qrhigles2_p.h.
Referenced by create(), QRhiGles2::setShaderResources(), and updateResources().
bool QGles2ShaderResourceBindings::hasDynamicOffset = false |
Definition at line 228 of file qrhigles2_p.h.
Referenced by create(), and QRhiGles2::setShaderResources().