summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-12-09 04:43:24 -0800
committerGitHub <noreply@github.com>2024-12-09 20:43:24 +0800
commit2e7774a2bfa0da2c5c57fd28c17b26b3b1c3c064 (patch)
treeefb0389174a3cbd8900af65f001662d58974b24f /source
parent0d5636c2426fad43490e0f06830fe6e6db71d045 (diff)
Add Sampler*Shadow type aliases. (#5789)
Co-authored-by: Ellie Hermaszewska <ellieh@nvidia.com>
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.