yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

kaizhangNVFeature/initialize list side branch (#6058)9ec6b9168

master
593 B25 linesraw
1//DISABLE_TEST:SIMPLE(filecheck=CHECK): -target glsl -stage compute -entry computeMain -zero-initialize
2// CHECK: {{.* }}= 0U;
3
4//DISABLE_TEST(compute, vulkan):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-vk -compute -entry computeMain -allow-glsl -xslang -zero-initialize
5
6//TEST_INPUT:ubuffer(data=[0], stride=4):out,name=outputBuffer
7RWStructuredBuffer<uint> outputBuffer;
8
9struct structData
10{
11    uint data;
12};
13
14struct structOuterData
15{
16    static structData data;
17};
18
19[numthreads(1,1,1)]
20void computeMain()
21{
22    // BUF: 1
23    structOuterData mat;
24    outputBuffer[0] = mat.data.data == 0;
25}