summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/slang/hlsl.meta.slang14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/slang/hlsl.meta.slang b/source/slang/hlsl.meta.slang
index 412d5b6a0..31500f028 100644
--- a/source/slang/hlsl.meta.slang
+++ b/source/slang/hlsl.meta.slang
@@ -4052,6 +4052,20 @@ ${{{{
}
}}}}
+// Declare Sampler*Shadow type aliases.
+${{{{
+ for (int shape = 0; shape < 4; shape++)
+ for (int isArray = 0; isArray<=1; isArray++)
+ {
+}}}}
+/// Represents a handle to a $(shapeTypeNames[shape]) combined texture-sampler for shadow comparison.
+/// @param format The storage format of the texture.
+/// @see Please refer to `_Texture` for more information about texture types.
+/// @category texture_types
+typealias Sampler$(shapeTypeNames[shape])$(arrayPostFix[isArray])Shadow<int format=0> = _Texture<float, __Shape$(shapeTypeNames[shape]), $(isArray), 0, 0, 0, 1, 1, format>;
+${{{{
+ }
+}}}}
// Atomic intrinsic insts.