rhi: shadowmap manual test: use Nearest filtering

Just to avoid validation warnings on systems where the sampling
a D32 texture with linear filtering is not supported.

This is likely not a problem elsewhere: Qt Quick 3D for example
samples the depth texture only with Nearest filtering already.

Fixes: QTBUG-89761
Pick-to: 6.0
Change-Id: I80bf5b7ecfcb3365f4010daa17f2ef00bb206b74
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
bb10
Laszlo Agocs 2021-01-04 15:44:21 +01:00
parent d896f78999
commit 133af89038
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ void Window::customInit()
d.releasePool << d.shadowMap;
d.shadowMap->create();
d.shadowSampler = m_r->newSampler(QRhiSampler::Linear, QRhiSampler::Linear, QRhiSampler::None,
d.shadowSampler = m_r->newSampler(QRhiSampler::Nearest, QRhiSampler::Nearest, QRhiSampler::None,
QRhiSampler::ClampToEdge, QRhiSampler::ClampToEdge);
d.releasePool << d.shadowSampler;
d.shadowSampler->setTextureCompareOp(QRhiSampler::Less);