1hlsl.swizzle.frag 2Shader version: 500 3gl_FragCoord origin is upper left 40:? Sequence 50:1 Sequence 60:1 move second child to first child ( temp 4-component vector of float) 70:1 'AmbientColor' ( global 4-component vector of float) 80:? Constant: 90:? 1.000000 100:? 0.500000 110:? 0.000000 120:? 1.000000 130:4 Function Definition: ShaderFunction(vf4; ( temp 4-component vector of float) 140:4 Function Parameters: 150:4 'input' ( in 4-component vector of float) 160:? Sequence 170:5 Branch: Return with expression 180:5 component-wise multiply ( temp 4-component vector of float) 190:5 vector swizzle ( temp 4-component vector of float) 200:5 'input' ( in 4-component vector of float) 210:5 Sequence 220:5 Constant: 230:5 3 (const int) 240:5 Constant: 250:5 3 (const int) 260:5 Constant: 270:5 1 (const int) 280:5 Constant: 290:5 0 (const int) 300:5 Construct vec4 ( temp 4-component vector of float) 310:5 direct index ( temp float) 320:5 'AmbientColor' ( global 4-component vector of float) 330:5 Constant: 340:5 2 (const int) 350:? Linker Objects 360:? 'AmbientColor' ( global 4-component vector of float) 37 38 39Linked fragment stage: 40 41WARNING: Linking fragment stage: Entry point not found 42 43Shader version: 500 44gl_FragCoord origin is upper left 450:? Sequence 460:1 Sequence 470:1 move second child to first child ( temp 4-component vector of float) 480:1 'AmbientColor' ( global 4-component vector of float) 490:? Constant: 500:? 1.000000 510:? 0.500000 520:? 0.000000 530:? 1.000000 540:4 Function Definition: ShaderFunction(vf4; ( temp 4-component vector of float) 550:4 Function Parameters: 560:4 'input' ( in 4-component vector of float) 570:? Sequence 580:5 Branch: Return with expression 590:5 component-wise multiply ( temp 4-component vector of float) 600:5 vector swizzle ( temp 4-component vector of float) 610:5 'input' ( in 4-component vector of float) 620:5 Sequence 630:5 Constant: 640:5 3 (const int) 650:5 Constant: 660:5 3 (const int) 670:5 Constant: 680:5 1 (const int) 690:5 Constant: 700:5 0 (const int) 710:5 Construct vec4 ( temp 4-component vector of float) 720:5 direct index ( temp float) 730:5 'AmbientColor' ( global 4-component vector of float) 740:5 Constant: 750:5 2 (const int) 760:? Linker Objects 770:? 'AmbientColor' ( global 4-component vector of float) 78 79// Module Version 10000 80// Generated by (magic number): 8000a 81// Id's are bound by 30 82 83 Capability Shader 84 1: ExtInstImport "GLSL.std.450" 85 MemoryModel Logical GLSL450 86 EntryPoint Fragment 4 "PixelShaderFunction" 87 ExecutionMode 4 OriginUpperLeft 88 Source HLSL 500 89 Name 4 "PixelShaderFunction" 90 Name 11 "ShaderFunction(vf4;" 91 Name 10 "input" 92 Name 14 "AmbientColor" 93 2: TypeVoid 94 3: TypeFunction 2 95 6: TypeFloat 32 96 7: TypeVector 6(float) 4 97 8: TypePointer Function 7(fvec4) 98 9: TypeFunction 7(fvec4) 8(ptr) 99 13: TypePointer Private 7(fvec4) 10014(AmbientColor): 13(ptr) Variable Private 101 15: 6(float) Constant 1065353216 102 16: 6(float) Constant 1056964608 103 17: 6(float) Constant 0 104 18: 7(fvec4) ConstantComposite 15 16 17 15 105 21: TypeInt 32 0 106 22: 21(int) Constant 2 107 23: TypePointer Private 6(float) 1084(PixelShaderFunction): 2 Function None 3 109 5: Label 110 Store 14(AmbientColor) 18 111 Return 112 FunctionEnd 11311(ShaderFunction(vf4;): 7(fvec4) Function None 9 114 10(input): 8(ptr) FunctionParameter 115 12: Label 116 19: 7(fvec4) Load 10(input) 117 20: 7(fvec4) VectorShuffle 19 19 3 3 1 0 118 24: 23(ptr) AccessChain 14(AmbientColor) 22 119 25: 6(float) Load 24 120 26: 7(fvec4) CompositeConstruct 25 25 25 25 121 27: 7(fvec4) FMul 20 26 122 ReturnValue 27 123 FunctionEnd 124