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::Repeat | 0 |
QRhiSampler::ClampToEdge | 1 |
QRhiSampler::Mirror | 2 |
enum QRhiSampler::CompareOp
텍스처 비교 함수를 지정합니다.
Constant | 값 | 설명 |
---|---|---|
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 로 설정합니다.
텍스처에 밉 레벨이 없거나 밉 레벨을 고려하지 않으려면 이 설정을 없음으로 둡니다.
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.