1 hlsl.constructexpr.frag 2 Shader version: 500 3 gl_FragCoord origin is upper left 4 0:? Sequence 5 0:4 Function Definition: @main( ( temp structure{ temp 4-component vector of float color}) 6 0:4 Function Parameters: 7 0:? Sequence 8 0:6 Constant: 9 0:6 3 (const int) 10 0:7 Constant: 11 0:7 4 (const int) 12 0:8 Constant: 13 0:8 5 (const int) 14 0:9 Constant: 15 0:9 6 (const int) 16 0:10 Constant: 17 0:10 7 (const int) 18 0:11 Constant: 19 0:11 8 (const int) 20 0:12 Comma ( temp 2-component vector of float) 21 0:? Constant: 22 0:? 9.000000 23 0:? 10.000000 24 0:? Constant: 25 0:? 11.000000 26 0:? 12.000000 27 0:15 move second child to first child ( temp 4-component vector of float) 28 0:15 color: direct index for structure ( temp 4-component vector of float) 29 0:15 'ps_output' ( temp structure{ temp 4-component vector of float color}) 30 0:15 Constant: 31 0:15 0 (const int) 32 0:15 Constant: 33 0:15 1.000000 34 0:15 1.000000 35 0:15 1.000000 36 0:15 1.000000 37 0:16 Branch: Return with expression 38 0:16 'ps_output' ( temp structure{ temp 4-component vector of float color}) 39 0:4 Function Definition: main( ( temp void) 40 0:4 Function Parameters: 41 0:? Sequence 42 0:4 Sequence 43 0:4 move second child to first child ( temp 4-component vector of float) 44 0:? '@entryPointOutput.color' (layout( location=0) out 4-component vector of float) 45 0:4 color: direct index for structure ( temp 4-component vector of float) 46 0:4 Function Call: @main( ( temp structure{ temp 4-component vector of float color}) 47 0:4 Constant: 48 0:4 0 (const int) 49 0:? Linker Objects 50 0:? '@entryPointOutput.color' (layout( location=0) out 4-component vector of float) 51 52 53 Linked fragment stage: 54 55 56 Shader version: 500 57 gl_FragCoord origin is upper left 58 0:? Sequence 59 0:4 Function Definition: @main( ( temp structure{ temp 4-component vector of float color}) 60 0:4 Function Parameters: 61 0:? Sequence 62 0:6 Constant: 63 0:6 3 (const int) 64 0:7 Constant: 65 0:7 4 (const int) 66 0:8 Constant: 67 0:8 5 (const int) 68 0:9 Constant: 69 0:9 6 (const int) 70 0:10 Constant: 71 0:10 7 (const int) 72 0:11 Constant: 73 0:11 8 (const int) 74 0:12 Comma ( temp 2-component vector of float) 75 0:? Constant: 76 0:? 9.000000 77 0:? 10.000000 78 0:? Constant: 79 0:? 11.000000 80 0:? 12.000000 81 0:15 move second child to first child ( temp 4-component vector of float) 82 0:15 color: direct index for structure ( temp 4-component vector of float) 83 0:15 'ps_output' ( temp structure{ temp 4-component vector of float color}) 84 0:15 Constant: 85 0:15 0 (const int) 86 0:15 Constant: 87 0:15 1.000000 88 0:15 1.000000 89 0:15 1.000000 90 0:15 1.000000 91 0:16 Branch: Return with expression 92 0:16 'ps_output' ( temp structure{ temp 4-component vector of float color}) 93 0:4 Function Definition: main( ( temp void) 94 0:4 Function Parameters: 95 0:? Sequence 96 0:4 Sequence 97 0:4 move second child to first child ( temp 4-component vector of float) 98 0:? '@entryPointOutput.color' (layout( location=0) out 4-component vector of float) 99 0:4 color: direct index for structure ( temp 4-component vector of float) 100 0:4 Function Call: @main( ( temp structure{ temp 4-component vector of float color}) 101 0:4 Constant: 102 0:4 0 (const int) 103 0:? Linker Objects 104 0:? '@entryPointOutput.color' (layout( location=0) out 4-component vector of float) 105 106 // Module Version 10000 107 // Generated by (magic number): 80007 108 // Id's are bound by 40 109 110 Capability Shader 111 1: ExtInstImport "GLSL.std.450" 112 MemoryModel Logical GLSL450 113 EntryPoint Fragment 4 "main" 37 114 ExecutionMode 4 OriginUpperLeft 115 Source HLSL 500 116 Name 4 "main" 117 Name 8 "PS_OUTPUT" 118 MemberName 8(PS_OUTPUT) 0 "color" 119 Name 10 "@main(" 120 Name 27 "ps_output" 121 Name 37 "@entryPointOutput.color" 122 Decorate 37(@entryPointOutput.color) Location 0 123 2: TypeVoid 124 3: TypeFunction 2 125 6: TypeFloat 32 126 7: TypeVector 6(float) 4 127 8(PS_OUTPUT): TypeStruct 7(fvec4) 128 9: TypeFunction 8(PS_OUTPUT) 129 12: TypeInt 32 1 130 13: 12(int) Constant 3 131 14: 12(int) Constant 4 132 15: 12(int) Constant 5 133 16: 12(int) Constant 6 134 17: 12(int) Constant 7 135 18: 12(int) Constant 8 136 19: TypeVector 6(float) 2 137 20: 6(float) Constant 1091567616 138 21: 6(float) Constant 1092616192 139 22: 19(fvec2) ConstantComposite 20 21 140 23: 6(float) Constant 1093664768 141 24: 6(float) Constant 1094713344 142 25: 19(fvec2) ConstantComposite 23 24 143 26: TypePointer Function 8(PS_OUTPUT) 144 28: 12(int) Constant 0 145 29: 6(float) Constant 1065353216 146 30: 7(fvec4) ConstantComposite 29 29 29 29 147 31: TypePointer Function 7(fvec4) 148 36: TypePointer Output 7(fvec4) 149 37(@entryPointOutput.color): 36(ptr) Variable Output 150 4(main): 2 Function None 3 151 5: Label 152 38:8(PS_OUTPUT) FunctionCall 10(@main() 153 39: 7(fvec4) CompositeExtract 38 0 154 Store 37(@entryPointOutput.color) 39 155 Return 156 FunctionEnd 157 10(@main():8(PS_OUTPUT) Function None 9 158 11: Label 159 27(ps_output): 26(ptr) Variable Function 160 32: 31(ptr) AccessChain 27(ps_output) 28 161 Store 32 30 162 33:8(PS_OUTPUT) Load 27(ps_output) 163 ReturnValue 33 164 FunctionEnd 165