このページでは

QRhiSampler Class

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

ヘッダー: #include <rhi/qrhi.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS GuiPrivate)
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

ミップマップフィルタモードを返します。

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()も参照してください 。

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