glsl-static-const-array.slang
// glsl-static-const-array.slang
//TEST(compute):COMPARE_COMPUTE:-vk -shaderobj
static const int gData[4] =
{
0xA, 0xB, 0xC, 0xD,
};
//TEST_INPUT:ubuffer(data=[0 0 0 0], stride=4):out,name gBuffer
RWStructuredBuffer<int> gBuffer;
[numthreads(4,1,1)]
void computeMain(uint3 tid : SV_DispatchThreadID)
{
gBuffer[tid.x] = gData[tid.x];
}