summaryrefslogtreecommitdiffstats
path: root/tests/reflection/texture-resource-type.slang
diff options
context:
space:
mode:
authorDevon <devonrutledge03@gmail.com>2025-03-20 00:38:52 -0600
committerGitHub <noreply@github.com>2025-03-20 06:38:52 +0000
commit30068d75fb97fecc163253fb331daddbb09234e6 (patch)
tree6e1a5b757db538a58c2397de4980618d280783d4 /tests/reflection/texture-resource-type.slang
parent404e95cdd02830ba0fb215081e826025609c4d14 (diff)
Make image format reflection easier (#6550)
* image format json reflection * format code * use direct include --------- Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Diffstat (limited to 'tests/reflection/texture-resource-type.slang')
-rw-r--r--tests/reflection/texture-resource-type.slang7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/reflection/texture-resource-type.slang b/tests/reflection/texture-resource-type.slang
index 2455ba611..36f7ff8d2 100644
--- a/tests/reflection/texture-resource-type.slang
+++ b/tests/reflection/texture-resource-type.slang
@@ -1,12 +1,13 @@
// texture-resource-type.slang
-// Tests reflection of inner texture type.
+// Tests reflection of inner texture type and formats.
//TEST:REFLECTION:-stage compute -entry main -target hlsl
Texture2D NoParameters;
Texture2D<float> FloatTexture;
Texture2D<float2> FloatTwoTexture;
+Texture2D<float3> FloatThreeTexture;
Texture2D<float4> FloatFourTexture;
Texture2D<int> IntTexture;
Texture2D<int2> IntTwoTexture;
@@ -14,6 +15,10 @@ Texture2D<int4> IntFourTexture;
Texture2D<uint> UintTexture;
Texture2D<uint2> UintTwoTexture;
Texture2D<uint4> UintFourTexture;
+[format("r11f_g11f_b10f")]
+Texture2D R11G11B10Texture;
+[format("rgb10_a2ui")]
+Texture2D<uint3> RGB10_A2_UI_Texture;
[numthreads(1, 1, 1)]
void main(uint3 dispatchThreadID : SV_DispatchThreadID)