![]() |
Qt 6.x
The Qt SDK
|
#include <qrhid3d11_p.h>
Classes | |
struct | BoundResourceData |
struct | BoundSampledTextureData |
struct | BoundStorageBufferData |
struct | BoundStorageImageData |
struct | BoundUniformBufferData |
struct | StageSamplerBatches |
struct | StageUavBatches |
struct | StageUniformBufferBatches |
Public Member Functions | |
QD3D11ShaderResourceBindings (QRhiImplementation *rhi) | |
~QD3D11ShaderResourceBindings () | |
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 |
Friends | |
class | QRhiD3D11 |
Definition at line 183 of file qrhid3d11_p.h.
QD3D11ShaderResourceBindings::QD3D11ShaderResourceBindings | ( | QRhiImplementation * | rhi | ) |
Definition at line 3912 of file qrhid3d11.cpp.
QD3D11ShaderResourceBindings::~QD3D11ShaderResourceBindings | ( | ) |
Definition at line 3917 of file qrhid3d11.cpp.
References destroy().
|
overridevirtual |
Implements QRhiShaderResourceBindings.
Definition at line 3932 of file qrhid3d11.cpp.
References QVarLengthArray< T, Prealloc >::begin(), boundResourceData, QVarLengthArray< T, Prealloc >::cbegin(), QVarLengthArray< T, Prealloc >::cend(), QVarLengthArray< T, Prealloc >::count(), destroy(), QVarLengthArray< T, Prealloc >::end(), generation, QRhiShaderResourceBinding::Data::UniformBufferData::hasDynamicOffset, hasDynamicOffset, QVarLengthArray< T, Prealloc >::isEmpty(), QRhiShaderResourceBindings::m_bindings, QRHI_RES_RHI, QRhiImplementation::shaderResourceBindingData(), QRhiImplementation::sortedBindingLessThan(), sortedBindings, QRhiShaderResourceBinding::Data::type, QRhiShaderResourceBinding::Data::u, QRhiShaderResourceBinding::Data::ubuf, 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 3922 of file qrhid3d11.cpp.
References boundResourceData, QVarLengthArray< T, Prealloc >::clear(), QRHI_RES_RHI, and sortedBindings.
Referenced by ~QD3D11ShaderResourceBindings(), and create().
|
overridevirtual |
Implements QRhiShaderResourceBindings.
Definition at line 3965 of file qrhid3d11.cpp.
References QVarLengthArray< T, Prealloc >::begin(), QRhiShaderResourceBindings::BindingsAreSorted, boundResourceData, QVarLengthArray< T, Prealloc >::cbegin(), QVarLengthArray< T, Prealloc >::cend(), QVarLengthArray< T, Prealloc >::clear(), QVarLengthArray< T, Prealloc >::count(), QVarLengthArray< T, Prealloc >::end(), generation, QRhiShaderResourceBindings::m_bindings, Q_ASSERT, QRhiImplementation::sortedBindingLessThan(), and sortedBindings.
|
friend |
Definition at line 289 of file qrhid3d11_p.h.
QVarLengthArray<BoundResourceData, 8> QD3D11ShaderResourceBindings::boundResourceData |
Definition at line 226 of file qrhid3d11_p.h.
Referenced by create(), destroy(), QRhiD3D11::setShaderResources(), updateResources(), and QRhiD3D11::updateShaderResourceBindings().
StageSamplerBatches QD3D11ShaderResourceBindings::csSamplerBatches |
Definition at line 285 of file qrhid3d11_p.h.
Referenced by QRhiD3D11::updateShaderResourceBindings().
StageUavBatches QD3D11ShaderResourceBindings::csUavBatches |
Definition at line 287 of file qrhid3d11_p.h.
Referenced by QRhiD3D11::updateShaderResourceBindings().
StageUniformBufferBatches QD3D11ShaderResourceBindings::csUniformBufferBatches |
Definition at line 278 of file qrhid3d11_p.h.
Referenced by QRhiD3D11::updateShaderResourceBindings().
StageSamplerBatches QD3D11ShaderResourceBindings::dsSamplerBatches |
Definition at line 282 of file qrhid3d11_p.h.
Referenced by QRhiD3D11::updateShaderResourceBindings().
StageUniformBufferBatches QD3D11ShaderResourceBindings::dsUniformBufferBatches |
Definition at line 275 of file qrhid3d11_p.h.
Referenced by QRhiD3D11::updateShaderResourceBindings().
StageSamplerBatches QD3D11ShaderResourceBindings::fsSamplerBatches |
Definition at line 284 of file qrhid3d11_p.h.
Referenced by QRhiD3D11::updateShaderResourceBindings().
StageUniformBufferBatches QD3D11ShaderResourceBindings::fsUniformBufferBatches |
Definition at line 277 of file qrhid3d11_p.h.
Referenced by QRhiD3D11::updateShaderResourceBindings().
uint QD3D11ShaderResourceBindings::generation = 0 |
Definition at line 193 of file qrhid3d11_p.h.
Referenced by create(), QRhiD3D11::setShaderResources(), and updateResources().
StageSamplerBatches QD3D11ShaderResourceBindings::gsSamplerBatches |
Definition at line 283 of file qrhid3d11_p.h.
Referenced by QRhiD3D11::updateShaderResourceBindings().
StageUniformBufferBatches QD3D11ShaderResourceBindings::gsUniformBufferBatches |
Definition at line 276 of file qrhid3d11_p.h.
Referenced by QRhiD3D11::updateShaderResourceBindings().
bool QD3D11ShaderResourceBindings::hasDynamicOffset = false |
Definition at line 191 of file qrhid3d11_p.h.
Referenced by create(), and QRhiD3D11::setShaderResources().
StageSamplerBatches QD3D11ShaderResourceBindings::hsSamplerBatches |
Definition at line 281 of file qrhid3d11_p.h.
Referenced by QRhiD3D11::updateShaderResourceBindings().
StageUniformBufferBatches QD3D11ShaderResourceBindings::hsUniformBufferBatches |
Definition at line 274 of file qrhid3d11_p.h.
Referenced by QRhiD3D11::updateShaderResourceBindings().
QVarLengthArray<QRhiShaderResourceBinding, 8> QD3D11ShaderResourceBindings::sortedBindings |
Definition at line 192 of file qrhid3d11_p.h.
Referenced by create(), destroy(), QRhiD3D11::setShaderResources(), updateResources(), and QRhiD3D11::updateShaderResourceBindings().
StageSamplerBatches QD3D11ShaderResourceBindings::vsSamplerBatches |
Definition at line 280 of file qrhid3d11_p.h.
Referenced by QRhiD3D11::updateShaderResourceBindings().
StageUniformBufferBatches QD3D11ShaderResourceBindings::vsUniformBufferBatches |
Definition at line 273 of file qrhid3d11_p.h.
Referenced by QRhiD3D11::updateShaderResourceBindings().