QRhiSampler Class

サンプラーリソース。詳細...

ヘッダー #include <rhi/qrhi.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::GuiPrivate)
qmake: QT += gui-private
以来:Qt 6.6
継承: QRhiResource

パブリックな型

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

パブリック関数

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

再実装されたパブリック関数

virtual QRhiResource::Type resourceType() const override

詳細説明

注: これは互換性保証に制限のあるRHI APIです。詳細はQRhi を参照してください。

メンバー型ドキュメント

enum QRhiSampler::AddressMode

アドレス指定モード

定数
QRhiSampler::Repeat0
QRhiSampler::ClampToEdge1
QRhiSampler::Mirror2

enum QRhiSampler::CompareOp

テクスチャ比較関数を指定します。

定数説明
QRhiSampler::Never0(デフォルト)
QRhiSampler::Less1
QRhiSampler::Equal2
QRhiSampler::LessOrEqual3
QRhiSampler::Greater4
QRhiSampler::NotEqual5
QRhiSampler::GreaterOrEqual6
QRhiSampler::Always7

enum QRhiSampler::Filter

最小化、拡大、またはミップマップフィルタリングを指定します。

定数説明
QRhiSampler::None0mipmapMode() にのみ適用可能。ミップマップを使用しないことを示す。
QRhiSampler::Nearest1
QRhiSampler::Linear2

メンバ関数ドキュメント

QRhiSampler::AddressMode QRhiSampler::addressU() const

水平ラップモードを返す。

setAddressU()も参照

QRhiSampler::AddressMode QRhiSampler::addressV() const

垂直ラップモードを返す。

setAddressV()も参照

QRhiSampler::AddressMode QRhiSampler::addressW() const

深度ラップモードを返す。

setAddressW()も参照

QRhiSampler::Filter QRhiSampler::magFilter() const

倍率フィルタモードを返します。

setMagFilter()も参照

QRhiSampler::Filter QRhiSampler::minFilter() const

最小化フィルターのモードを返します。

setMinFilter()も参照ください

QRhiSampler::Filter QRhiSampler::mipmapMode() const

mipmap フィルタモードを返します。

setMipmapMode()も参照 ください。

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

再実装:QRhiResource::resourceType() const.

リソース型を返します。

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

水平方向の折り返しを設定するmode

addressU()も参照

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

垂直方向の折り返しを設定するmode

addressV()も参照

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

デプスラップmode を設定する。

addressW()も参照

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

倍率フィルターモードをf に設定する。

magFilter()も参照

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

最小化フィルターのモードをf に設定します。

minFilter()も参照

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

ミップマップフィルタモードをf に設定します。

テクスチャにミップレベルがない場合、またはミップレベルを考慮しない場合は、この設定を None にしておきます。

mipmapMode()も参照してください

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

テクスチャ比較関数op を設定します。

textureCompareOp()も参照してください

QRhiSampler::CompareOp QRhiSampler::textureCompareOp() const

テクスチャ比較関数を返します。

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.