Skip to content

Commit 889ac20

Browse files
greg-lunargBNieuwenhuizen
authored andcommitted
Add buffer store to nonuniform tests
1 parent c9ffeec commit 889ac20

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Test/baseResults/spv.nonuniform.frag.out

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
spv.nonuniform.frag
22
// Module Version 10000
33
// Generated by (magic number): 8000a
4-
// Id's are bound by 212
4+
// Id's are bound by 215
55

66
Capability Shader
77
Capability InputAttachment
@@ -159,6 +159,9 @@ spv.nonuniform.frag
159159
Decorate 207 DecorationNonUniformEXT
160160
Decorate 208 DecorationNonUniformEXT
161161
Decorate 209 DecorationNonUniformEXT
162+
Decorate 92(nu_ii) DecorationNonUniformEXT
163+
Decorate 212 DecorationNonUniformEXT
164+
Decorate 214 DecorationNonUniformEXT
162165
2: TypeVoid
163166
3: TypeFunction 2
164167
6: TypeInt 32 1
@@ -382,6 +385,10 @@ spv.nonuniform.frag
382385
210: 30(float) Load 32(b)
383386
211: 30(float) FAdd 210 209
384387
Store 32(b) 211
388+
212: 6(int) Load 92(nu_ii)
389+
213: 30(float) Load 32(b)
390+
214: 94(ptr) AccessChain 102(storageBuffer) 212 53
391+
Store 214 213
385392
Return
386393
FunctionEnd
387394
11(foo(i1;i1;): 6(int) Function None 8

Test/spv.nonuniform.frag

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,6 @@ void main()
5252
b += uniformBuffer[uv[nu_ii]].a;
5353
b += uniformBuffer[int(m[2].z)].a;
5454
b += uniformBuffer[s.a].a;
55+
56+
storageBuffer[nu_ii].b = b;
5557
}

0 commit comments

Comments
 (0)