Commit 889ac204 by Greg Fischer Committed by Bas Nieuwenhuizen

Add buffer store to nonuniform tests

parent c9ffeec6
spv.nonuniform.frag
// Module Version 10000
// Generated by (magic number): 8000a
// Id's are bound by 212
// Id's are bound by 215
Capability Shader
Capability InputAttachment
......@@ -159,6 +159,9 @@ spv.nonuniform.frag
Decorate 207 DecorationNonUniformEXT
Decorate 208 DecorationNonUniformEXT
Decorate 209 DecorationNonUniformEXT
Decorate 92(nu_ii) DecorationNonUniformEXT
Decorate 212 DecorationNonUniformEXT
Decorate 214 DecorationNonUniformEXT
2: TypeVoid
3: TypeFunction 2
6: TypeInt 32 1
......@@ -382,6 +385,10 @@ spv.nonuniform.frag
210: 30(float) Load 32(b)
211: 30(float) FAdd 210 209
Store 32(b) 211
212: 6(int) Load 92(nu_ii)
213: 30(float) Load 32(b)
214: 94(ptr) AccessChain 102(storageBuffer) 212 53
Store 214 213
Return
FunctionEnd
11(foo(i1;i1;): 6(int) Function None 8
......
......@@ -52,4 +52,6 @@ void main()
b += uniformBuffer[uv[nu_ii]].a;
b += uniformBuffer[int(m[2].z)].a;
b += uniformBuffer[s.a].a;
storageBuffer[nu_ii].b = b;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment