diff options
| author | Devon <devonrutledge03@gmail.com> | 2025-02-27 18:52:14 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-27 17:52:14 -0800 |
| commit | cd20e94af9f384c03e8be69f6c8ce9e97212cc9b (patch) | |
| tree | 6e67aab570d8e87ca92ff989126abf3613fc97c1 /tests/reflection/texture-resource-type.slang | |
| parent | 6f2ce72b038b34e84819ddfc5d658166ed879eaa (diff) | |
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 <yonghe@outlook.com>
Diffstat (limited to 'tests/reflection/texture-resource-type.slang')
| -rw-r--r-- | tests/reflection/texture-resource-type.slang | 21 |
1 files changed, 21 insertions, 0 deletions
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<float> FloatTexture; +Texture2D<float2> FloatTwoTexture; +Texture2D<float4> FloatFourTexture; +Texture2D<int> IntTexture; +Texture2D<int2> IntTwoTexture; +Texture2D<int4> IntFourTexture; +Texture2D<uint> UintTexture; +Texture2D<uint2> UintTwoTexture; +Texture2D<uint4> UintFourTexture; + +[numthreads(1, 1, 1)] +void main(uint3 dispatchThreadID : SV_DispatchThreadID) +{ +} |
