diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-03-24 02:01:21 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-03-24 02:01:21 +0000 |
| commit | 1e06b106e1e9eedf78da01f6f001e432ac6cd29d (patch) | |
| tree | 351bee2a0f6bcd9373dc06119d395aa3636e81b7 /Tests/TestApp/src/TestTexturing.cpp | |
| parent | Updated FX submodule (diff) | |
| download | DiligentEngine-1e06b106e1e9eedf78da01f6f001e432ac6cd29d.tar.gz DiligentEngine-1e06b106e1e9eedf78da01f6f001e432ac6cd29d.zip | |
Fixed warning in texturing test when running in D3D11/D3D12 modes
Diffstat (limited to 'Tests/TestApp/src/TestTexturing.cpp')
| -rw-r--r-- | Tests/TestApp/src/TestTexturing.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/TestApp/src/TestTexturing.cpp b/Tests/TestApp/src/TestTexturing.cpp index 5c2ccf8..2b5f5a2 100644 --- a/Tests/TestApp/src/TestTexturing.cpp +++ b/Tests/TestApp/src/TestTexturing.cpp @@ -287,7 +287,7 @@ void TestTexturing::Init( IRenderDevice *pDevice, IDeviceContext *pDeviceContext StaticSampler.Desc.MipFilter = FilterType; StaticSampler.ShaderStages = SHADER_TYPE_PIXEL; StaticSampler.SamplerOrTextureName = "g_tex2DTest"; - PSODesc.ResourceLayout.NumStaticSamplers = 1; + PSODesc.ResourceLayout.NumStaticSamplers = !(bIsIntTexture && pDevice->GetDeviceCaps().IsD3DDevice()) ? 1 : 0; PSODesc.ResourceLayout.StaticSamplers = &StaticSampler; pDevice->CreatePipelineState(PSODesc, &m_pPSO); |
