From cd20e94af9f384c03e8be69f6c8ce9e97212cc9b Mon Sep 17 00:00:00 2001 From: Devon Date: Thu, 27 Feb 2025 18:52:14 -0700 Subject: Add inner texture type to reflection json (#6416) * Add inner texture type to reflection json * Add expected result of test * Adjust test expected results * Fix ci test result --------- Co-authored-by: Yong He --- tests/reflection/texture-resource-type.slang | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 tests/reflection/texture-resource-type.slang (limited to 'tests/reflection/texture-resource-type.slang') diff --git a/tests/reflection/texture-resource-type.slang b/tests/reflection/texture-resource-type.slang new file mode 100644 index 000000000..2455ba611 --- /dev/null +++ b/tests/reflection/texture-resource-type.slang @@ -0,0 +1,21 @@ +// texture-resource-type.slang + +// Tests reflection of inner texture type. + +//TEST:REFLECTION:-stage compute -entry main -target hlsl + +Texture2D NoParameters; +Texture2D FloatTexture; +Texture2D FloatTwoTexture; +Texture2D FloatFourTexture; +Texture2D IntTexture; +Texture2D IntTwoTexture; +Texture2D IntFourTexture; +Texture2D UintTexture; +Texture2D UintTwoTexture; +Texture2D UintFourTexture; + +[numthreads(1, 1, 1)] +void main(uint3 dispatchThreadID : SV_DispatchThreadID) +{ +} -- cgit v1.2.3