Skip to content

Commit

Permalink
remove failing test as per reccomendation (shader-slang#4874)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArielG-NV committed Sep 3, 2024
1 parent 5712dbb commit 4956257
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions tests/compute/type-legalize-global-with-init.slang
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,15 @@ RWStructuredBuffer<uint> inputBuffer;

static const RWStructuredBuffer<uint> gBuffer = inputBuffer;

struct Stuff
{
RWStructuredBuffer<uint> a;
RWStructuredBuffer<uint> b;
}

static const Stuff gStuff = { inputBuffer, inputBuffer };
// Note: due to #4874 we cannot assign functions to globals
// which contain resource types.
static const RWStructuredBuffer<uint> 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)]
Expand Down

0 comments on commit 4956257

Please sign in to comment.