From 25ff48f701c1193d06df740f5f937ea4b8ee2b91 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Fri, 15 Feb 2019 11:25:48 -0800 Subject: Added Sam_ComparsionLinearClamp to common states --- Graphics/GraphicsTools/include/CommonlyUsedStates.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Graphics/GraphicsTools') diff --git a/Graphics/GraphicsTools/include/CommonlyUsedStates.h b/Graphics/GraphicsTools/include/CommonlyUsedStates.h index b97553d3..35ee4b3d 100644 --- a/Graphics/GraphicsTools/include/CommonlyUsedStates.h +++ b/Graphics/GraphicsTools/include/CommonlyUsedStates.h @@ -132,6 +132,19 @@ namespace Diligent TEXTURE_ADDRESS_WRAP }; + static const SamplerDesc Sam_ComparsionLinearClamp + { + FILTER_TYPE_COMPARISON_LINEAR, + FILTER_TYPE_COMPARISON_LINEAR, + FILTER_TYPE_COMPARISON_LINEAR, + TEXTURE_ADDRESS_CLAMP, + TEXTURE_ADDRESS_CLAMP, + TEXTURE_ADDRESS_CLAMP, + SamplerDesc{}.MipLODBias, + SamplerDesc{}.MaxAnisotropy, + COMPARISON_FUNC_LESS + }; + static const SamplerDesc Sam_Aniso2xClamp { FILTER_TYPE_ANISOTROPIC, -- cgit v1.2.3