From 30068d75fb97fecc163253fb331daddbb09234e6 Mon Sep 17 00:00:00 2001 From: Devon Date: Thu, 20 Mar 2025 00:38:52 -0600 Subject: 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> --- tests/reflection/texture-resource-type.slang | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/reflection/texture-resource-type.slang') 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 FloatTexture; Texture2D FloatTwoTexture; +Texture2D FloatThreeTexture; Texture2D FloatFourTexture; Texture2D IntTexture; Texture2D IntTwoTexture; @@ -14,6 +15,10 @@ Texture2D IntFourTexture; Texture2D UintTexture; Texture2D UintTwoTexture; Texture2D UintFourTexture; +[format("r11f_g11f_b10f")] +Texture2D R11G11B10Texture; +[format("rgb10_a2ui")] +Texture2D RGB10_A2_UI_Texture; [numthreads(1, 1, 1)] void main(uint3 dispatchThreadID : SV_DispatchThreadID) -- cgit v1.2.3