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::Repeat | 0 |
QRhiSampler::ClampToEdge | 1 |
QRhiSampler::Mirror | 2 |
enum QRhiSampler::CompareOp
텍스처 비교 함수를 지정합니다.
| 상수 | 값 | 설명 |
|---|---|---|
QRhiSampler::Never | 0 | (기본값) |
QRhiSampler::Less | 1 | |
QRhiSampler::Equal | 2 | |
QRhiSampler::LessOrEqual | 3 | |
QRhiSampler::Greater | 4 | |
QRhiSampler::NotEqual | 5 | |
QRhiSampler::GreaterOrEqual | 6 | |
QRhiSampler::Always | 7 |
enum QRhiSampler::Filter
축소, 확대 또는 밉맵 필터링을 지정합니다
| 상수 | 값 | 설명 |
|---|---|---|
QRhiSampler::None | 0 | mipmapMode()에만 적용되며, 밉맵을 사용하지 않음을 나타냅니다. |
QRhiSampler::Nearest | 1 | |
QRhiSampler::Linear | 2 |
멤버 함수 설명서
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.