Skip to content

Commit d84a78c

Browse files
Fixed CopyStaticResourcesCS test on Metal
1 parent ad49f70 commit d84a78c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Tests/DiligentCoreAPITest/assets/shaders/ShaderResourceLayout/CopyStaticResourcesCS.glsl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
layout(std140, binding = 0) buffer g_RWBuff_0
22
{
33
vec4 data[4];
4-
}g_StorageBuff_0;
4+
}g_StorageBuff0;
55

66
layout(std140, binding = 1) buffer g_RWBuff_1
77
{
88
vec4 data[4];
9-
}g_StorageBuff_1;
9+
}g_StorageBuff1;
1010

1111

1212
layout(std140, binding = 2) buffer g_RWBuff_2
1313
{
1414
vec4 data[4];
15-
}g_StorageBuff_2;
15+
}g_StorageBuff2;
1616

1717
layout(rgba8, binding = 3) uniform image2D g_RWTex2D_0;
1818
layout(rgba8, binding = 4) uniform image2D g_RWTex2D_1;
@@ -31,15 +31,15 @@ vec4 VerifyResources()
3131
vec4 AllCorrect = vec4(1.0, 1.0, 1.0, 1.0);
3232

3333
// Read from elements 1,2,3
34-
AllCorrect *= CheckValue(g_StorageBuff_0.data[1], Buff_0_Ref);
35-
AllCorrect *= CheckValue(g_StorageBuff_1.data[2], Buff_1_Ref);
36-
AllCorrect *= CheckValue(g_StorageBuff_2.data[3], Buff_2_Ref);
34+
AllCorrect *= CheckValue(g_StorageBuff0.data[1], Buff_0_Ref);
35+
AllCorrect *= CheckValue(g_StorageBuff1.data[2], Buff_1_Ref);
36+
AllCorrect *= CheckValue(g_StorageBuff2.data[3], Buff_2_Ref);
3737

3838
// Write to 0-th element
3939
vec4 Data = vec4(1.0, 2.0, 3.0, 4.0);
40-
g_StorageBuff_0.data[0] = Data;
41-
g_StorageBuff_1.data[0] = Data;
42-
g_StorageBuff_2.data[0] = Data;
40+
g_StorageBuff0.data[0] = Data;
41+
g_StorageBuff1.data[0] = Data;
42+
g_StorageBuff2.data[0] = Data;
4343

4444
AllCorrect *= CheckValue(imageLoad(g_RWTex2D_0, ivec2(10, 12)), RWTex2D_0_Ref);
4545
AllCorrect *= CheckValue(imageLoad(g_RWTex2D_1, ivec2(14, 17)), RWTex2D_1_Ref);

0 commit comments

Comments
 (0)