diff options
| author | assiduous <assiduous@diligentgraphics.com> | 2020-10-19 17:53:14 +0000 |
|---|---|---|
| committer | assiduous <assiduous@diligentgraphics.com> | 2020-10-19 17:53:14 +0000 |
| commit | 6212f1018b8160f390e6c384f69b4f4a0be1b590 (patch) | |
| tree | d37d76a163b1399b717faeaade67fdbf34082dbb /Components/src/ShadowMapManager.cpp | |
| parent | GLTF_PBR_Renderer: some cosmetic changes (diff) | |
| download | DiligentFX-6212f1018b8160f390e6c384f69b4f4a0be1b590.tar.gz DiligentFX-6212f1018b8160f390e6c384f69b4f4a0be1b590.zip | |
Some updates to match API240076
Diffstat (limited to 'Components/src/ShadowMapManager.cpp')
| -rw-r--r-- | Components/src/ShadowMapManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Components/src/ShadowMapManager.cpp b/Components/src/ShadowMapManager.cpp index d2c9723..8bb6b82 100644 --- a/Components/src/ShadowMapManager.cpp +++ b/Components/src/ShadowMapManager.cpp @@ -471,7 +471,7 @@ void ShadowMapManager::InitializeConversionTechniques(TEXTURE_FORMAT FilterableS {SHADER_TYPE_PIXEL, "g_tex2DShadowMap", SHADER_RESOURCE_VARIABLE_TYPE_MUTABLE} // }; - StaticSamplerDesc StaticSamplers[] = + ImmutableSamplerDesc ImtblSampler[] = { {SHADER_TYPE_PIXEL, "g_tex2DShadowMap", Sam_LinearClamp} // }; @@ -480,8 +480,8 @@ void ShadowMapManager::InitializeConversionTechniques(TEXTURE_FORMAT FilterableS { // Even though textures are never sampled in the shader, OpenGL requires proper // sampler to be set even when texelFetch is used. - PSODesc.ResourceLayout.StaticSamplers = StaticSamplers; - PSODesc.ResourceLayout.NumStaticSamplers = _countof(StaticSamplers); + PSODesc.ResourceLayout.ImmutableSamplers = ImtblSampler; + PSODesc.ResourceLayout.NumImmutableSamplers = _countof(ImtblSampler); } PSODesc.ResourceLayout.Variables = Variables; PSODesc.ResourceLayout.NumVariables = _countof(Variables); |
