From c5091f0ae3a8b816af893e84ef289f745acf39dc Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 24 Jul 2025 22:45:11 -0700 Subject: 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> --- tests/bindings/hlsl-to-vulkan-combined.hlsl.expected | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/bindings/hlsl-to-vulkan-combined.hlsl.expected b/tests/bindings/hlsl-to-vulkan-combined.hlsl.expected index 32c99bd78..9c718ebe8 100644 --- a/tests/bindings/hlsl-to-vulkan-combined.hlsl.expected +++ b/tests/bindings/hlsl-to-vulkan-combined.hlsl.expected @@ -10,6 +10,7 @@ standard output = { "type": { "kind": "resource", "baseShape": "texture2D", + "combined": true, "resultType": { "kind": "scalar", "scalarType": "float32" @@ -22,6 +23,7 @@ standard output = { "type": { "kind": "resource", "baseShape": "texture2D", + "combined": true, "resultType": { "kind": "vector", "elementCount": 4, -- cgit v1.2.3