summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsTools
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-02-15 19:25:48 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-02-15 19:25:48 +0000
commit25ff48f701c1193d06df740f5f937ea4b8ee2b91 (patch)
treecd871cac500d1dc9917bce35093d11a64e0036b6 /Graphics/GraphicsTools
parentUpdated GenerateMipsCS.csh to compile on GLES (diff)
downloadDiligentCore-25ff48f701c1193d06df740f5f937ea4b8ee2b91.tar.gz
DiligentCore-25ff48f701c1193d06df740f5f937ea4b8ee2b91.zip
Added Sam_ComparsionLinearClamp to common states
Diffstat (limited to 'Graphics/GraphicsTools')
-rw-r--r--Graphics/GraphicsTools/include/CommonlyUsedStates.h13
1 files changed, 13 insertions, 0 deletions
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,