![]() |
Qt 6.x
The Qt SDK
|
\inmodule QtGui More...
#include <qrhi.h>
Inheritance diagram for QRhiSampler:
Collaboration diagram for QRhiSampler:Public Types | |
| enum | Filter { None , Nearest , Linear } |
| Specifies the minification, magnification, or mipmap filtering. More... | |
| enum | AddressMode { Repeat , ClampToEdge , Mirror } |
| Specifies the addressing mode. More... | |
| enum | CompareOp { Never , Less , Equal , LessOrEqual , Greater , NotEqual , GreaterOrEqual , Always } |
| Specifies the texture comparison function. More... | |
Public Types inherited from QRhiResource | |
| enum | Type { Buffer , Texture , Sampler , RenderBuffer , RenderPassDescriptor , SwapChainRenderTarget , TextureRenderTarget , ShaderResourceBindings , GraphicsPipeline , SwapChain , ComputePipeline , CommandBuffer } |
| Specifies type of the resource. More... | |
Public Member Functions | |
| 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 bool | create ()=0 |
Public Member Functions inherited from QRhiResource | |
| 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 |
Protected Member Functions | |
| QRhiSampler (QRhiImplementation *rhi, Filter magFilter_, Filter minFilter_, Filter mipmapMode_, AddressMode u_, AddressMode v_, AddressMode w_) | |
Protected Member Functions inherited from QRhiResource | |
| QRhiResource (QRhiImplementation *rhi) | |
Protected Attributes | |
| Filter | m_magFilter |
| Filter | m_minFilter |
| Filter | m_mipmapMode |
| AddressMode | m_addressU |
| AddressMode | m_addressV |
| AddressMode | m_addressW |
| CompareOp | m_compareOp |
Protected Attributes inherited from QRhiResource | |
| QRhiImplementation * | m_rhi = nullptr |
| quint64 | m_id |
| QByteArray | m_objectName |
\inmodule QtGui
Sampler resource.
| enum QRhiSampler::Filter |
Specifies the minification, magnification, or mipmap filtering.
\value None Applicable only for mipmapMode(), indicates no mipmaps to be used \value Nearest \value Linear
| Enumerator | |
|---|---|
| None | |
| Nearest | |
| Linear | |
|
protected |
|
inline |
|
inline |
|
inline |
|
pure virtual |
Implemented in QD3D11Sampler, QGles2Sampler, QMetalSampler, QNullSampler, and QVkSampler.
Referenced by QSSGRhiContext::sampler().
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
|
overridevirtual |
Implements QRhiResource.
Definition at line 4555 of file qrhi.cpp.
References QRhiResource::Sampler.
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
Definition at line 1064 of file qrhi.h.
Referenced by QD3D11Sampler::create(), QGles2Sampler::create(), QMetalSampler::create(), and QVkSampler::create().
|
protected |
Definition at line 1065 of file qrhi.h.
Referenced by QD3D11Sampler::create(), QGles2Sampler::create(), QMetalSampler::create(), and QVkSampler::create().
|
protected |
Definition at line 1066 of file qrhi.h.
Referenced by QD3D11Sampler::create(), QGles2Sampler::create(), QMetalSampler::create(), and QVkSampler::create().
|
protected |
Definition at line 1067 of file qrhi.h.
Referenced by QD3D11Sampler::create(), QGles2Sampler::create(), QMetalSampler::create(), and QVkSampler::create().
|
protected |
Definition at line 1061 of file qrhi.h.
Referenced by QD3D11Sampler::create(), QGles2Sampler::create(), QMetalSampler::create(), and QVkSampler::create().
|
protected |
Definition at line 1062 of file qrhi.h.
Referenced by QD3D11Sampler::create(), QGles2Sampler::create(), QMetalSampler::create(), and QVkSampler::create().
|
protected |
Definition at line 1063 of file qrhi.h.
Referenced by QD3D11Sampler::create(), QGles2Sampler::create(), QMetalSampler::create(), and QVkSampler::create().