![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtGuiPrivate \inheaderfile rhi/qrhi.h More...
#include <qrhi.h>
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 , ShadingRateMap } |
| 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 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 QtGuiPrivate \inheaderfile rhi/qrhi.h
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.
|
inline |
|
inline |
|
inline |
|
overridevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
|
protected |
|
protected |