mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 11:30:06 +00:00
102 lines
5.2 KiB
Plaintext
102 lines
5.2 KiB
Plaintext
spv.structAssignment.frag
|
|
WARNING: 0:6: '' : all default precisions are highp; use precision statements to quiet warning, e.g.:
|
|
"precision mediump int; precision highp float;"
|
|
|
|
// Module Version 10000
|
|
// Generated by (magic number): 8000b
|
|
// Id's are bound by 50
|
|
|
|
Capability Shader
|
|
1: ExtInstImport "GLSL.std.450"
|
|
MemoryModel Logical GLSL450
|
|
EntryPoint Fragment 4 "main" 31 44
|
|
ExecutionMode 4 OriginUpperLeft
|
|
Source GLSL 140
|
|
Name 4 "main"
|
|
Name 8 "lunarStruct1"
|
|
MemberName 8(lunarStruct1) 0 "i"
|
|
MemberName 8(lunarStruct1) 1 "f"
|
|
Name 9 "lunarStruct2"
|
|
MemberName 9(lunarStruct2) 0 "i"
|
|
MemberName 9(lunarStruct2) 1 "f"
|
|
MemberName 9(lunarStruct2) 2 "s1_1"
|
|
Name 10 "lunarStruct3"
|
|
MemberName 10(lunarStruct3) 0 "s2_1"
|
|
MemberName 10(lunarStruct3) 1 "i"
|
|
MemberName 10(lunarStruct3) 2 "f"
|
|
MemberName 10(lunarStruct3) 3 "s1_1"
|
|
Name 12 "foo3"
|
|
Name 22 "locals2"
|
|
Name 27 "foo2"
|
|
Name 31 "gl_FragColor"
|
|
Name 40 "samp2D"
|
|
Name 44 "coord"
|
|
Name 49 "foo"
|
|
MemberDecorate 8(lunarStruct1) 0 RelaxedPrecision
|
|
MemberDecorate 9(lunarStruct2) 0 RelaxedPrecision
|
|
MemberDecorate 10(lunarStruct3) 1 RelaxedPrecision
|
|
Decorate 16 RelaxedPrecision
|
|
Decorate 31(gl_FragColor) Location 0
|
|
Decorate 40(samp2D) DescriptorSet 0
|
|
Decorate 40(samp2D) Binding 0
|
|
Decorate 44(coord) RelaxedPrecision
|
|
Decorate 44(coord) Location 0
|
|
Decorate 45 RelaxedPrecision
|
|
2: TypeVoid
|
|
3: TypeFunction 2
|
|
6: TypeInt 32 1
|
|
7: TypeFloat 32
|
|
8(lunarStruct1): TypeStruct 6(int) 7(float)
|
|
9(lunarStruct2): TypeStruct 6(int) 7(float) 8(lunarStruct1)
|
|
10(lunarStruct3): TypeStruct 9(lunarStruct2) 6(int) 7(float) 8(lunarStruct1)
|
|
11: TypePointer Private 10(lunarStruct3)
|
|
12(foo3): 11(ptr) Variable Private
|
|
13: 6(int) Constant 0
|
|
14: TypePointer Private 6(int)
|
|
17: TypeBool
|
|
21: TypePointer Function 9(lunarStruct2)
|
|
23: TypePointer Private 9(lunarStruct2)
|
|
27(foo2): 23(ptr) Variable Private
|
|
29: TypeVector 7(float) 4
|
|
30: TypePointer Output 29(fvec4)
|
|
31(gl_FragColor): 30(ptr) Variable Output
|
|
32: 6(int) Constant 2
|
|
33: 6(int) Constant 1
|
|
34: TypePointer Function 7(float)
|
|
37: TypeImage 7(float) 2D sampled format:Unknown
|
|
38: TypeSampledImage 37
|
|
39: TypePointer UniformConstant 38
|
|
40(samp2D): 39(ptr) Variable UniformConstant
|
|
42: TypeVector 7(float) 2
|
|
43: TypePointer Input 42(fvec2)
|
|
44(coord): 43(ptr) Variable Input
|
|
48: TypePointer Private 8(lunarStruct1)
|
|
49(foo): 48(ptr) Variable Private
|
|
4(main): 2 Function None 3
|
|
5: Label
|
|
22(locals2): 21(ptr) Variable Function
|
|
15: 14(ptr) AccessChain 12(foo3) 13 13
|
|
16: 6(int) Load 15
|
|
18: 17(bool) SGreaterThan 16 13
|
|
SelectionMerge 20 None
|
|
BranchConditional 18 19 26
|
|
19: Label
|
|
24: 23(ptr) AccessChain 12(foo3) 13
|
|
25:9(lunarStruct2) Load 24
|
|
Store 22(locals2) 25
|
|
Branch 20
|
|
26: Label
|
|
28:9(lunarStruct2) Load 27(foo2)
|
|
Store 22(locals2) 28
|
|
Branch 20
|
|
20: Label
|
|
35: 34(ptr) AccessChain 22(locals2) 32 33
|
|
36: 7(float) Load 35
|
|
41: 38 Load 40(samp2D)
|
|
45: 42(fvec2) Load 44(coord)
|
|
46: 29(fvec4) ImageSampleImplicitLod 41 45
|
|
47: 29(fvec4) VectorTimesScalar 46 36
|
|
Store 31(gl_FragColor) 47
|
|
Return
|
|
FunctionEnd
|