hlsl.structIoFourWay.frag Shader version: 500 gl_FragCoord origin is upper left using depth_greater 0:? Sequence 0:15 Function Definition: @main(struct-T-f1-f1-f1-vf41; ( temp structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:15 Function Parameters: 0:15 't' ( in structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:? Sequence 0:17 Branch: Return with expression 0:17 'local' ( temp structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:15 Function Definition: main( ( temp void) 0:15 Function Parameters: 0:? Sequence 0:15 move second child to first child ( temp structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:? 't' ( temp structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:? 't' (layout( location=0) in structure{ temp float f, centroid temp float g, temp float d, temp 4-component vector of float normal}) 0:15 Sequence 0:15 move second child to first child ( temp structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:15 'flattenTemp' ( temp structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:15 Function Call: @main(struct-T-f1-f1-f1-vf41; ( temp structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:? 't' ( temp structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:15 move second child to first child ( temp float) 0:? 'f' (layout( location=0) out float) 0:15 f: direct index for structure ( temp float) 0:15 'flattenTemp' ( temp structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:15 Constant: 0:15 0 (const int) 0:15 move second child to first child ( temp float) 0:? 'g' (layout( location=1) out float) 0:15 g: direct index for structure ( temp float) 0:15 'flattenTemp' ( temp structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:15 Constant: 0:15 1 (const int) 0:15 move second child to first child ( temp float) 0:? 'd' ( out float FragDepth) 0:15 d: direct index for structure ( temp float) 0:15 'flattenTemp' ( temp structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:15 Constant: 0:15 2 (const int) 0:15 move second child to first child ( temp 4-component vector of float) 0:? 'normal' (layout( location=2) out 4-component vector of float) 0:15 normal: direct index for structure ( temp 4-component vector of float) 0:15 'flattenTemp' ( temp structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:15 Constant: 0:15 3 (const int) 0:? Linker Objects 0:? 'anon@0' (layout( row_major std140) uniform block{ uniform structure{layout( offset=68) temp float f, temp float g, temp float d, temp 4-component vector of float normal} s}) 0:? 'anon@1' (layout( row_major std140) uniform block{layout( row_major std140 offset=88) uniform structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal} t}) 0:? 'f' (layout( location=0) out float) 0:? 'g' (layout( location=1) out float) 0:? 'd' ( out float FragDepth) 0:? 'normal' (layout( location=2) out 4-component vector of float) 0:? 't' (layout( location=0) in structure{ temp float f, centroid temp float g, temp float d, temp 4-component vector of float normal}) Linked fragment stage: Shader version: 500 gl_FragCoord origin is upper left using depth_greater 0:? Sequence 0:15 Function Definition: @main(struct-T-f1-f1-f1-vf41; ( temp structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:15 Function Parameters: 0:15 't' ( in structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:? Sequence 0:17 Branch: Return with expression 0:17 'local' ( temp structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:15 Function Definition: main( ( temp void) 0:15 Function Parameters: 0:? Sequence 0:15 move second child to first child ( temp structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:? 't' ( temp structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:? 't' (layout( location=0) in structure{ temp float f, centroid temp float g, temp float d, temp 4-component vector of float normal}) 0:15 Sequence 0:15 move second child to first child ( temp structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:15 'flattenTemp' ( temp structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:15 Function Call: @main(struct-T-f1-f1-f1-vf41; ( temp structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:? 't' ( temp structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:15 move second child to first child ( temp float) 0:? 'f' (layout( location=0) out float) 0:15 f: direct index for structure ( temp float) 0:15 'flattenTemp' ( temp structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:15 Constant: 0:15 0 (const int) 0:15 move second child to first child ( temp float) 0:? 'g' (layout( location=1) out float) 0:15 g: direct index for structure ( temp float) 0:15 'flattenTemp' ( temp structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:15 Constant: 0:15 1 (const int) 0:15 move second child to first child ( temp float) 0:? 'd' ( out float FragDepth) 0:15 d: direct index for structure ( temp float) 0:15 'flattenTemp' ( temp structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:15 Constant: 0:15 2 (const int) 0:15 move second child to first child ( temp 4-component vector of float) 0:? 'normal' (layout( location=2) out 4-component vector of float) 0:15 normal: direct index for structure ( temp 4-component vector of float) 0:15 'flattenTemp' ( temp structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal}) 0:15 Constant: 0:15 3 (const int) 0:? Linker Objects 0:? 'anon@0' (layout( row_major std140) uniform block{ uniform structure{layout( offset=68) temp float f, temp float g, temp float d, temp 4-component vector of float normal} s}) 0:? 'anon@1' (layout( row_major std140) uniform block{layout( row_major std140 offset=88) uniform structure{ temp float f, temp float g, temp float d, temp 4-component vector of float normal} t}) 0:? 'f' (layout( location=0) out float) 0:? 'g' (layout( location=1) out float) 0:? 'd' ( out float FragDepth) 0:? 'normal' (layout( location=2) out 4-component vector of float) 0:? 't' (layout( location=0) in structure{ temp float f, centroid temp float g, temp float d, temp 4-component vector of float normal}) // Module Version 10000 // Generated by (magic number): 80001 // Id's are bound by 64 Capability Shader 1: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 EntryPoint Fragment 4 "main" 21 43 46 49 53 ExecutionMode 4 OriginUpperLeft ExecutionMode 4 DepthGreater Source HLSL 500 Name 4 "main" Name 8 "T" MemberName 8(T) 0 "f" MemberName 8(T) 1 "g" MemberName 8(T) 2 "d" MemberName 8(T) 3 "normal" Name 12 "@main(struct-T-f1-f1-f1-vf41;" Name 11 "t" Name 14 "local" Name 18 "t" Name 19 "T" MemberName 19(T) 0 "f" MemberName 19(T) 1 "g" MemberName 19(T) 2 "d" MemberName 19(T) 3 "normal" Name 21 "t" Name 38 "flattenTemp" Name 39 "param" Name 43 "f" Name 46 "g" Name 49 "d" Name 53 "normal" Name 56 "T" MemberName 56(T) 0 "f" MemberName 56(T) 1 "g" MemberName 56(T) 2 "d" MemberName 56(T) 3 "normal" Name 57 "$Global" MemberName 57($Global) 0 "s" Name 59 "" Name 60 "T" MemberName 60(T) 0 "f" MemberName 60(T) 1 "g" MemberName 60(T) 2 "d" MemberName 60(T) 3 "normal" Name 61 "buff" MemberName 61(buff) 0 "t" Name 63 "" MemberDecorate 19(T) 1 Centroid Decorate 21(t) Location 0 Decorate 43(f) Location 0 Decorate 46(g) Location 1 Decorate 49(d) BuiltIn FragDepth Decorate 53(normal) Location 2 MemberDecorate 56(T) 0 Offset 68 MemberDecorate 56(T) 1 Offset 72 MemberDecorate 56(T) 2 Offset 76 MemberDecorate 56(T) 3 Offset 80 MemberDecorate 57($Global) 0 Offset 0 Decorate 57($Global) Block Decorate 59 DescriptorSet 0 MemberDecorate 60(T) 0 Offset 0 MemberDecorate 60(T) 1 Offset 4 MemberDecorate 60(T) 2 Offset 8 MemberDecorate 60(T) 3 Offset 16 MemberDecorate 61(buff) 0 Offset 96 Decorate 61(buff) Block Decorate 63 DescriptorSet 0 2: TypeVoid 3: TypeFunction 2 6: TypeFloat 32 7: TypeVector 6(float) 4 8(T): TypeStruct 6(float) 6(float) 6(float) 7(fvec4) 9: TypePointer Function 8(T) 10: TypeFunction 8(T) 9(ptr) 19(T): TypeStruct 6(float) 6(float) 6(float) 7(fvec4) 20: TypePointer Input 19(T) 21(t): 20(ptr) Variable Input 24: TypeInt 32 1 25: 24(int) Constant 0 26: TypePointer Function 6(float) 29: 24(int) Constant 1 32: 24(int) Constant 2 35: 24(int) Constant 3 36: TypePointer Function 7(fvec4) 42: TypePointer Output 6(float) 43(f): 42(ptr) Variable Output 46(g): 42(ptr) Variable Output 49(d): 42(ptr) Variable Output 52: TypePointer Output 7(fvec4) 53(normal): 52(ptr) Variable Output 56(T): TypeStruct 6(float) 6(float) 6(float) 7(fvec4) 57($Global): TypeStruct 56(T) 58: TypePointer Uniform 57($Global) 59: 58(ptr) Variable Uniform 60(T): TypeStruct 6(float) 6(float) 6(float) 7(fvec4) 61(buff): TypeStruct 60(T) 62: TypePointer Uniform 61(buff) 63: 62(ptr) Variable Uniform 4(main): 2 Function None 3 5: Label 18(t): 9(ptr) Variable Function 38(flattenTemp): 9(ptr) Variable Function 39(param): 9(ptr) Variable Function 22: 19(T) Load 21(t) 23: 6(float) CompositeExtract 22 0 27: 26(ptr) AccessChain 18(t) 25 Store 27 23 28: 6(float) CompositeExtract 22 1 30: 26(ptr) AccessChain 18(t) 29 Store 30 28 31: 6(float) CompositeExtract 22 2 33: 26(ptr) AccessChain 18(t) 32 Store 33 31 34: 7(fvec4) CompositeExtract 22 3 37: 36(ptr) AccessChain 18(t) 35 Store 37 34 40: 8(T) Load 18(t) Store 39(param) 40 41: 8(T) FunctionCall 12(@main(struct-T-f1-f1-f1-vf41;) 39(param) Store 38(flattenTemp) 41 44: 26(ptr) AccessChain 38(flattenTemp) 25 45: 6(float) Load 44 Store 43(f) 45 47: 26(ptr) AccessChain 38(flattenTemp) 29 48: 6(float) Load 47 Store 46(g) 48 50: 26(ptr) AccessChain 38(flattenTemp) 32 51: 6(float) Load 50 Store 49(d) 51 54: 36(ptr) AccessChain 38(flattenTemp) 35 55: 7(fvec4) Load 54 Store 53(normal) 55 Return FunctionEnd 12(@main(struct-T-f1-f1-f1-vf41;): 8(T) Function None 10 11(t): 9(ptr) FunctionParameter 13: Label 14(local): 9(ptr) Variable Function 15: 8(T) Load 14(local) ReturnValue 15 FunctionEnd