![]() |
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 | |
QMetalSampler (QRhiImplementation *rhi, Filter magFilter, Filter minFilter, Filter mipmapMode, AddressMode u, AddressMode v, AddressMode w) | |
~QMetalSampler () | |
void | destroy () override |
Releases (or requests deferred releasing of) the underlying native graphics resources. | |
bool | create () override |
![]() | |
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. | |
![]() | |
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 | |
QMetalSamplerData * | d |
uint | generation = 0 |
int | lastActiveFrameSlot = -1 |
Friends | |
class | QRhiMetal |
struct | QMetalShaderResourceBindings |
Definition at line 93 of file qrhimetal_p.h.
QMetalSampler::QMetalSampler | ( | QRhiImplementation * | rhi, |
Filter | magFilter, | ||
Filter | minFilter, | ||
Filter | mipmapMode, | ||
AddressMode | u, | ||
AddressMode | v, | ||
AddressMode | w ) |
Definition at line 4016 of file qrhimetal.mm.
QMetalSampler::~QMetalSampler | ( | ) |
Definition at line 4023 of file qrhimetal.mm.
|
overridevirtual |
Implements QRhiSampler.
Definition at line 4116 of file qrhimetal.mm.
|
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 4029 of file qrhimetal.mm.
|
friend |
Definition at line 105 of file qrhimetal_p.h.
|
friend |
Definition at line 104 of file qrhimetal_p.h.
QMetalSamplerData* QMetalSampler::d |
Definition at line 101 of file qrhimetal_p.h.
uint QMetalSampler::generation = 0 |
Definition at line 102 of file qrhimetal_p.h.
int QMetalSampler::lastActiveFrameSlot = -1 |
Definition at line 103 of file qrhimetal_p.h.