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 <qrhigles2_p.h>
Public Member Functions | |
QGles2Sampler (QRhiImplementation *rhi, Filter magFilter, Filter minFilter, Filter mipmapMode, AddressMode u, AddressMode v, AddressMode w) | |
~QGles2Sampler () | |
void | destroy () override |
Releases (or requests deferred releasing of) the underlying native graphics resources. | |
bool | create () override |
Public Member Functions inherited from QRhiSampler | |
QRhiResource::Type | resourceType () const override |
Filter | magFilter () const |
void | setMagFilter (Filter f) |
Sets the magnification filter mode to f. | |
Filter | minFilter () const |
void | setMinFilter (Filter f) |
Sets the minification filter mode to f. | |
Filter | mipmapMode () const |
void | setMipmapMode (Filter f) |
Sets the mipmap filter mode to f. | |
AddressMode | addressU () const |
void | setAddressU (AddressMode mode) |
Sets the horizontal wrap mode. | |
AddressMode | addressV () const |
void | setAddressV (AddressMode mode) |
Sets the vertical wrap mode. | |
AddressMode | addressW () const |
void | setAddressW (AddressMode mode) |
Sets the depth wrap mode. | |
CompareOp | textureCompareOp () const |
void | setTextureCompareOp (CompareOp op) |
Sets the texture comparison function op. | |
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 | |
QGles2SamplerData | d |
uint | generation = 0 |
Friends | |
class | QRhiGles2 |
Definition at line 150 of file qrhigles2_p.h.
QGles2Sampler::QGles2Sampler | ( | QRhiImplementation * | rhi, |
Filter | magFilter, | ||
Filter | minFilter, | ||
Filter | mipmapMode, | ||
AddressMode | u, | ||
AddressMode | v, | ||
AddressMode | w ) |
Definition at line 5773 of file qrhigles2.cpp.
QGles2Sampler::~QGles2Sampler | ( | ) |
Definition at line 5779 of file qrhigles2.cpp.
References destroy().
|
overridevirtual |
Implements QRhiSampler.
Definition at line 5791 of file qrhigles2.cpp.
References d, generation, QGles2SamplerData::glmagfilter, QGles2SamplerData::glminfilter, QGles2SamplerData::gltexcomparefunc, QGles2SamplerData::glwrapr, QGles2SamplerData::glwraps, QGles2SamplerData::glwrapt, QRhiSampler::m_addressU, QRhiSampler::m_addressV, QRhiSampler::m_addressW, QRhiSampler::m_compareOp, QRhiSampler::m_magFilter, QRhiSampler::m_minFilter, QRhiSampler::m_mipmapMode, QRHI_RES_RHI, toGlMagFilter(), toGlMinFilter(), toGlTextureCompareFunc(), and toGlWrapMode().
|
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 5784 of file qrhigles2.cpp.
References QRHI_RES_RHI.
Referenced by ~QGles2Sampler().
|
friend |
Definition at line 160 of file qrhigles2_p.h.
QGles2SamplerData QGles2Sampler::d |
Definition at line 158 of file qrhigles2_p.h.
Referenced by create().
uint QGles2Sampler::generation = 0 |
Definition at line 159 of file qrhigles2_p.h.
Referenced by create().