QRhiSampler Class
Risorse di esempio. Altro...
| Intestazione: | #include <rhi/qrhi.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS GuiPrivate) target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate) |
| qmake: | QT += gui-private |
| A partire da: | Qt 6.6 |
| Eredita da: | QRhiResource |
Tipi pubblici
| enum | AddressMode { Repeat, ClampToEdge, Mirror } |
| enum | CompareOp { Never, Less, Equal, LessOrEqual, Greater, …, Always } |
| enum | Filter { None, Nearest, Linear } |
Funzioni pubbliche
| QRhiSampler::AddressMode | addressU() const |
| QRhiSampler::AddressMode | addressV() const |
| QRhiSampler::AddressMode | addressW() const |
| QRhiSampler::Filter | magFilter() const |
| QRhiSampler::Filter | minFilter() const |
| QRhiSampler::Filter | mipmapMode() const |
| void | setAddressU(QRhiSampler::AddressMode mode) |
| void | setAddressV(QRhiSampler::AddressMode mode) |
| void | setAddressW(QRhiSampler::AddressMode mode) |
| void | setMagFilter(QRhiSampler::Filter f) |
| void | setMinFilter(QRhiSampler::Filter f) |
| void | setMipmapMode(QRhiSampler::Filter f) |
| void | setTextureCompareOp(QRhiSampler::CompareOp op) |
| QRhiSampler::CompareOp | textureCompareOp() const |
Funzioni pubbliche reimplementate
| virtual QRhiResource::Type | resourceType() const override |
Descrizione dettagliata
Nota: si tratta di un'API RHI con garanzie di compatibilità limitate; per ulteriori dettagli, consultare QRhi.
Documentazione sui tipi dei membri
enum QRhiSampler::AddressMode
Specifica la modalità di indirizzamento
| Costante | Valore |
|---|---|
QRhiSampler::Repeat | 0 |
QRhiSampler::ClampToEdge | 1 |
QRhiSampler::Mirror | 2 |
enum QRhiSampler::CompareOp
Specifica la funzione di confronto delle texture.
| Costante | Valore | Descrizione |
|---|---|---|
QRhiSampler::Never | 0 | (impostazione predefinita) |
QRhiSampler::Less | 1 | |
QRhiSampler::Equal | 2 | |
QRhiSampler::LessOrEqual | 3 | |
QRhiSampler::Greater | 4 | |
QRhiSampler::NotEqual | 5 | |
QRhiSampler::GreaterOrEqual | 6 | |
QRhiSampler::Always | 7 |
enum QRhiSampler::Filter
Specifica il filtro di minificazione, ingrandimento o mipmap
| Costante | Valore | Descrizione |
|---|---|---|
QRhiSampler::None | 0 | Applicabile solo per mipmapMode(), indica che non devono essere utilizzate mipmap |
QRhiSampler::Nearest | 1 | |
QRhiSampler::Linear | 2 |
Documentazione delle funzioni membro
QRhiSampler::AddressMode QRhiSampler::addressU() const
Restituisce la modalità di ritorno a capo orizzontale.
Vedi anche setAddressU().
QRhiSampler::AddressMode QRhiSampler::addressV() const
Restituisce la modalità di ritorno a capo verticale.
Vedi anche setAddressV().
QRhiSampler::AddressMode QRhiSampler::addressW() const
Restituisce la modalità di avvolgimento in profondità.
Vedi anche ` setAddressW()`.
QRhiSampler::Filter QRhiSampler::magFilter() const
Restituisce la modalità del filtro di ingrandimento.
Vedi anche setMagFilter().
QRhiSampler::Filter QRhiSampler::minFilter() const
Restituisce la modalità del filtro di minificazione.
Vedi anche ` setMinFilter()`.
QRhiSampler::Filter QRhiSampler::mipmapMode() const
Restituisce la modalità di filtro mipmap.
Vedi anche setMipmapMode().
[override virtual] QRhiResource::Type QRhiSampler::resourceType() const
Reimplementa: ` QRhiResource::resourceType()` const.
Restituisce il tipo di risorsa.
void QRhiSampler::setAddressU(QRhiSampler::AddressMode mode)
Imposta il ritorno a capo orizzontale mode.
Vedi anche addressU().
void QRhiSampler::setAddressV(QRhiSampler::AddressMode mode)
Imposta il ritorno a capo verticale mode.
Vedi anche addressV().
void QRhiSampler::setAddressW(QRhiSampler::AddressMode mode)
Imposta il wrap di profondità mode.
Vedi anche addressW().
void QRhiSampler::setMagFilter(QRhiSampler::Filter f)
Imposta la modalità del filtro di ingrandimento su “ f ”.
Vedi anche magFilter().
void QRhiSampler::setMinFilter(QRhiSampler::Filter f)
Imposta la modalità del filtro di minificazione su “ f ”.
Vedi anche minFilter().
void QRhiSampler::setMipmapMode(QRhiSampler::Filter f)
Imposta la modalità del filtro mipmap su " f".
Lasciare questa impostazione su None quando la texture non presenta livelli mip o quando non si desidera tenerne conto.
Vedi anche mipmapMode().
void QRhiSampler::setTextureCompareOp(QRhiSampler::CompareOp op)
Imposta la funzione di confronto delle texture op.
Vedi anche textureCompareOp().
QRhiSampler::CompareOp QRhiSampler::textureCompareOp() const
Restituisce la funzione di confronto delle texture.
Vedi anche setTextureCompareOp().
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.