QRhiSampler Class

Sampler-Ressource. Mehr...

Kopfzeile: #include <rhi/qrhi.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate)
qmake: QT += gui-private
Since: Qt 6.6
Vererbt: QRhiResource

Öffentliche Typen

enum AddressMode { Repeat, ClampToEdge, Mirror }
enum CompareOp { Never, Less, Equal, LessOrEqual, Greater, …, Always }
enum Filter { None, Nearest, Linear }

Öffentliche Funktionen

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

Reimplementierte öffentliche Funktionen

virtual QRhiResource::Type resourceType() const override

Detaillierte Beschreibung

Hinweis: Dies ist eine RHI-API mit begrenzten Kompatibilitätsgarantien, siehe QRhi für Details.

Dokumentation der Mitgliedstypen

enum QRhiSampler::AddressMode

Gibt den Adressierungsmodus an

KonstanteWert
QRhiSampler::Repeat0
QRhiSampler::ClampToEdge1
QRhiSampler::Mirror2

enum QRhiSampler::CompareOp

Gibt die Texturvergleichsfunktion an.

KonstanteWertBeschreibung
QRhiSampler::Never0(Voreinstellung)
QRhiSampler::Less1
QRhiSampler::Equal2
QRhiSampler::LessOrEqual3
QRhiSampler::Greater4
QRhiSampler::NotEqual5
QRhiSampler::GreaterOrEqual6
QRhiSampler::Always7

enum QRhiSampler::Filter

Gibt die Verkleinerung, Vergrößerung oder Mipmap-Filterung an

KonstanteWertBeschreibung
QRhiSampler::None0Gilt nur für mipmapMode(), zeigt an, dass keine Mipmaps verwendet werden sollen
QRhiSampler::Nearest1
QRhiSampler::Linear2

Dokumentation der Mitgliedsfunktionen

QRhiSampler::AddressMode QRhiSampler::addressU() const

Gibt den horizontalen Umbruchmodus zurück.

Siehe auch setAddressU().

QRhiSampler::AddressMode QRhiSampler::addressV() const

Gibt den vertikalen Umbruchmodus zurück.

Siehe auch setAddressV().

QRhiSampler::AddressMode QRhiSampler::addressW() const

Gibt den Modus für den Tiefenumbruch zurück.

Siehe auch setAddressW().

QRhiSampler::Filter QRhiSampler::magFilter() const

Gibt den Modus des Vergrößerungsfilters zurück.

Siehe auch setMagFilter().

QRhiSampler::Filter QRhiSampler::minFilter() const

Gibt den Modus des Minifizierungsfilters zurück.

Siehe auch setMinFilter().

QRhiSampler::Filter QRhiSampler::mipmapMode() const

Gibt den Mipmap-Filtermodus zurück.

Siehe auch setMipmapMode().

[override virtual] QRhiResource::Type QRhiSampler::resourceType() const

Reimplements: QRhiResource::resourceType() const.

Gibt den Ressourcentyp zurück.

void QRhiSampler::setAddressU(QRhiSampler::AddressMode mode)

Legt den horizontalen Umbruch fest mode.

Siehe auch addressU().

void QRhiSampler::setAddressV(QRhiSampler::AddressMode mode)

Setzt den vertikalen Umbruch mode.

Siehe auch addressV().

void QRhiSampler::setAddressW(QRhiSampler::AddressMode mode)

Legt den Tiefenumbruch mode fest.

Siehe auch addressW().

void QRhiSampler::setMagFilter(QRhiSampler::Filter f)

Setzt den Vergrößerungsfiltermodus auf f.

Siehe auch magFilter().

void QRhiSampler::setMinFilter(QRhiSampler::Filter f)

Setzt den Minifizierungsfiltermodus auf f.

Siehe auch minFilter().

void QRhiSampler::setMipmapMode(QRhiSampler::Filter f)

Setzt den Mipmap-Filtermodus auf f.

Lassen Sie diesen Wert auf None gesetzt, wenn die Textur keine Mip-Levels hat, oder wenn die Mip-Levels nicht berücksichtigt werden sollen.

Siehe auch mipmapMode().

void QRhiSampler::setTextureCompareOp(QRhiSampler::CompareOp op)

Setzt die Texturvergleichsfunktion op.

Siehe auch textureCompareOp().

QRhiSampler::CompareOp QRhiSampler::textureCompareOp() const

Gibt die Texturvergleichsfunktion zurück.

Siehe auch setTextureCompareOp().

© 2025 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.