summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraidanfnv <aidanf@nvidia.com>2025-07-08 23:47:08 -0700
committerGitHub <noreply@github.com>2025-07-09 06:47:08 +0000
commita7cb36901ccaf8297136c58c1451d6e04420af73 (patch)
treeeb5bfb53e3a0e9a0bf20c03b2b200809637d1d13 /tests
parent43d0c2100ef1a5df4b54525e50eb29fe7c39ec16 (diff)
Avoid adding underscore to _snorm format if it has one (#7664)
Diffstat (limited to 'tests')
-rw-r--r--tests/bindings/vk-image-format.slang6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/bindings/vk-image-format.slang b/tests/bindings/vk-image-format.slang
index 2f7bb53b5..ff0422d28 100644
--- a/tests/bindings/vk-image-format.slang
+++ b/tests/bindings/vk-image-format.slang
@@ -5,6 +5,7 @@
//CHECK: layout(r32f)
//CHECK: layout(r16_snorm)
//CHECK: layout(r11f_g11f_b10f)
+//CHECK: layout(rgba16_snorm)
// Something typical
[vk::image_format("r32f")]
@@ -18,6 +19,10 @@ RWTexture2D<float> snormTexture;
[vk::image_format("r11g11b10f")]
RWTexture2D<float4> specialTexture;
+// snorm with underscore in format name
+[vk::image_format("rgba16_snorm")]
+RWTexture2D<float4> snormTextureWithUnderscore;
+
cbuffer C
{
uint2 index;
@@ -30,6 +35,7 @@ float4 main(): SV_Target
result += typicalTexture[index];
result += snormTexture[index];
result += specialTexture[index];
+ result += snormTextureWithUnderscore[index];
return result;
}