summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorCopilot <198982749+Copilot@users.noreply.github.com>2025-07-24 22:45:11 -0700
committerGitHub <noreply@github.com>2025-07-25 05:45:11 +0000
commitc5091f0ae3a8b816af893e84ef289f745acf39dc (patch)
tree2a544b068bf5e5070da06e06ec0052d7300b9fe6 /include
parent528ca0d0e55df88a9a97ba071ae803a62a34ae5a (diff)
Add combined texture-sampler flag to reflection API to differentiate Texture2D from Sampler2D (#7901)
* Initial plan * Add SLANG_TEXTURE_COMBINED_FLAG to differentiate combined texture-samplers Co-authored-by: csyonghe <2652293+csyonghe@users.noreply.github.com> * Fix regression in hlsl-to-vulkan-combined test by updating expected output Co-authored-by: csyonghe <2652293+csyonghe@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: csyonghe <2652293+csyonghe@users.noreply.github.com>
Diffstat (limited to 'include')
-rw-r--r--include/slang.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/slang.h b/include/slang.h
index 5db0a8ee0..97ed08bed 100644
--- a/include/slang.h
+++ b/include/slang.h
@@ -1922,12 +1922,13 @@ public: \
SLANG_ACCELERATION_STRUCTURE = 0x09,
SLANG_TEXTURE_SUBPASS = 0x0A,
- SLANG_RESOURCE_EXT_SHAPE_MASK = 0xF0,
+ SLANG_RESOURCE_EXT_SHAPE_MASK = 0x1F0,
SLANG_TEXTURE_FEEDBACK_FLAG = 0x10,
SLANG_TEXTURE_SHADOW_FLAG = 0x20,
SLANG_TEXTURE_ARRAY_FLAG = 0x40,
SLANG_TEXTURE_MULTISAMPLE_FLAG = 0x80,
+ SLANG_TEXTURE_COMBINED_FLAG = 0x100,
SLANG_TEXTURE_1D_ARRAY = SLANG_TEXTURE_1D | SLANG_TEXTURE_ARRAY_FLAG,
SLANG_TEXTURE_2D_ARRAY = SLANG_TEXTURE_2D | SLANG_TEXTURE_ARRAY_FLAG,