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