mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-10 04:20:06 +00:00
6626cadbad
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31531 e7fa87d3-cd2b-0410-9028-fcbf551c1848
62 lines
2.7 KiB
Plaintext
62 lines
2.7 KiB
Plaintext
spv.whileLoop.frag
|
|
|
|
Linked fragment stage:
|
|
|
|
|
|
// Module Version 99
|
|
// Generated by (magic number): 51a00bb
|
|
// Id's are bound by 32
|
|
|
|
Source GLSL 110
|
|
1: ExtInstImport "GLSL.std.450"
|
|
MemoryModel Logical GLSL450
|
|
EntryPoint Fragment 4
|
|
Name 4 "main"
|
|
Name 10 "color"
|
|
Name 12 "BaseColor"
|
|
Name 19 "d"
|
|
Name 25 "bigColor"
|
|
Name 30 "gl_FragColor"
|
|
Decorate 12(BaseColor) Smooth
|
|
Decorate 30(gl_FragColor) BuiltIn FragColor
|
|
2: TypeVoid
|
|
3: TypeFunction 2
|
|
7: TypeFloat 32
|
|
8: TypeVector 7(float) 4
|
|
9: TypePointer Function 8(fvec4)
|
|
11: TypePointer Input 8(fvec4)
|
|
12(BaseColor): 11(ptr) Variable Input
|
|
18: TypePointer UniformConstant 7(float)
|
|
19(d): 18(ptr) Variable UniformConstant
|
|
21: TypeBool
|
|
24: TypePointer UniformConstant 8(fvec4)
|
|
25(bigColor): 24(ptr) Variable UniformConstant
|
|
29: TypePointer Output 8(fvec4)
|
|
30(gl_FragColor): 29(ptr) Variable Output
|
|
4(main): 2 Function None 3
|
|
5: Label
|
|
10(color): 9(ptr) Variable Function
|
|
13: 8(fvec4) Load 12(BaseColor)
|
|
Store 10(color) 13
|
|
Branch 14
|
|
14: Label
|
|
16: 8(fvec4) Load 10(color)
|
|
17: 7(float) CompositeExtract 16 0
|
|
20: 7(float) Load 19(d)
|
|
22: 21(bool) FOrdLessThan 17 20
|
|
LoopMerge 15 None
|
|
BranchConditional 22 23 15
|
|
23: Label
|
|
26: 8(fvec4) Load 25(bigColor)
|
|
27: 8(fvec4) Load 10(color)
|
|
28: 8(fvec4) FAdd 27 26
|
|
Store 10(color) 28
|
|
Branch 14
|
|
15: Label
|
|
31: 8(fvec4) Load 10(color)
|
|
Store 30(gl_FragColor) 31
|
|
Branch 6
|
|
6: Label
|
|
Return
|
|
FunctionEnd
|