From 88d66a61d1e814554fcf35724bfaa53d43b1f775 Mon Sep 17 00:00:00 2001 From: ArielG-NV <159081215+ArielG-NV@users.noreply.github.com> Date: Tue, 3 Sep 2024 19:43:31 -0400 Subject: [PATCH] remove failing test as per reccomendation (#4874) --- tests/compute/type-legalize-global-with-init.slang | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/tests/compute/type-legalize-global-with-init.slang b/tests/compute/type-legalize-global-with-init.slang index 573ac98499..a3a1429aae 100644 --- a/tests/compute/type-legalize-global-with-init.slang +++ b/tests/compute/type-legalize-global-with-init.slang @@ -14,19 +14,15 @@ RWStructuredBuffer inputBuffer; static const RWStructuredBuffer gBuffer = inputBuffer; -struct Stuff -{ - RWStructuredBuffer a; - RWStructuredBuffer b; -} - -static const Stuff gStuff = { inputBuffer, inputBuffer }; +// Note: due to #4874 we cannot assign functions to globals +// which contain resource types. +static const RWStructuredBuffer gStuff = inputBuffer; uint test(uint x) { return gBuffer[x] - + gStuff.a[x + 1] * 16 - + gStuff.b[x + 2] * 256; + + gStuff[x + 1] * 16 + + gStuff[x + 2] * 256; } [numthreads(4, 1, 1)]