From 2e7774a2bfa0da2c5c57fd28c17b26b3b1c3c064 Mon Sep 17 00:00:00 2001 From: Yong He Date: Mon, 9 Dec 2024 04:43:24 -0800 Subject: Add Sampler*Shadow type aliases. (#5789) Co-authored-by: Ellie Hermaszewska --- source/slang/hlsl.meta.slang | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'source') 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 = _Texture; +${{{{ + } +}}}} // Atomic intrinsic insts. -- cgit v1.2.3