hlsl.ternary.simple.frag Shader version: 500 gl_FragCoord origin is upper left 0:? Sequence 0:2 Function Definition: @main(i1;i1;vf4;vf4; ( temp 4-component vector of float) 0:2 Function Parameters: 0:2 'a' ( in int) 0:2 'b' ( in int) 0:2 'col0' ( in 4-component vector of float) 0:2 'col1' ( in 4-component vector of float) 0:? Sequence 0:3 Branch: Return with expression 0:3 Test condition and select ( temp 4-component vector of float): no shortcircuit 0:3 Condition 0:3 Compare Less Than ( temp bool) 0:3 'a' ( in int) 0:3 'b' ( in int) 0:3 true case 0:3 'col0' ( in 4-component vector of float) 0:3 false case 0:3 'col1' ( in 4-component vector of float) 0:2 Function Definition: main( ( temp void) 0:2 Function Parameters: 0:? Sequence 0:2 move second child to first child ( temp int) 0:? 'a' ( temp int) 0:? 'a' (layout( location=0) flat in int) 0:2 move second child to first child ( temp int) 0:? 'b' ( temp int) 0:? 'b' (layout( location=1) flat in int) 0:2 move second child to first child ( temp 4-component vector of float) 0:? 'col0' ( temp 4-component vector of float) 0:? 'col0' (layout( location=2) in 4-component vector of float) 0:2 move second child to first child ( temp 4-component vector of float) 0:? 'col1' ( temp 4-component vector of float) 0:? 'col1' (layout( location=3) in 4-component vector of float) 0:2 move second child to first child ( temp 4-component vector of float) 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 0:2 Function Call: @main(i1;i1;vf4;vf4; ( temp 4-component vector of float) 0:? 'a' ( temp int) 0:? 'b' ( temp int) 0:? 'col0' ( temp 4-component vector of float) 0:? 'col1' ( temp 4-component vector of float) 0:? Linker Objects 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 0:? 'a' (layout( location=0) flat in int) 0:? 'b' (layout( location=1) flat in int) 0:? 'col0' (layout( location=2) in 4-component vector of float) 0:? 'col1' (layout( location=3) in 4-component vector of float) Linked fragment stage: Shader version: 500 gl_FragCoord origin is upper left 0:? Sequence 0:2 Function Definition: @main(i1;i1;vf4;vf4; ( temp 4-component vector of float) 0:2 Function Parameters: 0:2 'a' ( in int) 0:2 'b' ( in int) 0:2 'col0' ( in 4-component vector of float) 0:2 'col1' ( in 4-component vector of float) 0:? Sequence 0:3 Branch: Return with expression 0:3 Test condition and select ( temp 4-component vector of float): no shortcircuit 0:3 Condition 0:3 Compare Less Than ( temp bool) 0:3 'a' ( in int) 0:3 'b' ( in int) 0:3 true case 0:3 'col0' ( in 4-component vector of float) 0:3 false case 0:3 'col1' ( in 4-component vector of float) 0:2 Function Definition: main( ( temp void) 0:2 Function Parameters: 0:? Sequence 0:2 move second child to first child ( temp int) 0:? 'a' ( temp int) 0:? 'a' (layout( location=0) flat in int) 0:2 move second child to first child ( temp int) 0:? 'b' ( temp int) 0:? 'b' (layout( location=1) flat in int) 0:2 move second child to first child ( temp 4-component vector of float) 0:? 'col0' ( temp 4-component vector of float) 0:? 'col0' (layout( location=2) in 4-component vector of float) 0:2 move second child to first child ( temp 4-component vector of float) 0:? 'col1' ( temp 4-component vector of float) 0:? 'col1' (layout( location=3) in 4-component vector of float) 0:2 move second child to first child ( temp 4-component vector of float) 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 0:2 Function Call: @main(i1;i1;vf4;vf4; ( temp 4-component vector of float) 0:? 'a' ( temp int) 0:? 'b' ( temp int) 0:? 'col0' ( temp 4-component vector of float) 0:? 'col1' ( temp 4-component vector of float) 0:? Linker Objects 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 0:? 'a' (layout( location=0) flat in int) 0:? 'b' (layout( location=1) flat in int) 0:? 'col0' (layout( location=2) in 4-component vector of float) 0:? 'col1' (layout( location=3) in 4-component vector of float) // Module Version 10000 // Generated by (magic number): 8000b // Id's are bound by 54 Capability Shader 1: ExtInstImport "GLSL.std.450" MemoryModel Logical GLSL450 EntryPoint Fragment 4 "main" 31 34 38 41 44 ExecutionMode 4 OriginUpperLeft Source HLSL 500 Name 4 "main" Name 16 "@main(i1;i1;vf4;vf4;" Name 12 "a" Name 13 "b" Name 14 "col0" Name 15 "col1" Name 29 "a" Name 31 "a" Name 33 "b" Name 34 "b" Name 36 "col0" Name 38 "col0" Name 40 "col1" Name 41 "col1" Name 44 "@entryPointOutput" Name 45 "param" Name 47 "param" Name 49 "param" Name 51 "param" Decorate 31(a) Flat Decorate 31(a) Location 0 Decorate 34(b) Flat Decorate 34(b) Location 1 Decorate 38(col0) Location 2 Decorate 41(col1) Location 3 Decorate 44(@entryPointOutput) Location 0 2: TypeVoid 3: TypeFunction 2 6: TypeInt 32 1 7: TypePointer Function 6(int) 8: TypeFloat 32 9: TypeVector 8(float) 4 10: TypePointer Function 9(fvec4) 11: TypeFunction 9(fvec4) 7(ptr) 7(ptr) 10(ptr) 10(ptr) 20: TypeBool 24: TypeVector 20(bool) 4 30: TypePointer Input 6(int) 31(a): 30(ptr) Variable Input 34(b): 30(ptr) Variable Input 37: TypePointer Input 9(fvec4) 38(col0): 37(ptr) Variable Input 41(col1): 37(ptr) Variable Input 43: TypePointer Output 9(fvec4) 44(@entryPointOutput): 43(ptr) Variable Output 4(main): 2 Function None 3 5: Label 29(a): 7(ptr) Variable Function 33(b): 7(ptr) Variable Function 36(col0): 10(ptr) Variable Function 40(col1): 10(ptr) Variable Function 45(param): 7(ptr) Variable Function 47(param): 7(ptr) Variable Function 49(param): 10(ptr) Variable Function 51(param): 10(ptr) Variable Function 32: 6(int) Load 31(a) Store 29(a) 32 35: 6(int) Load 34(b) Store 33(b) 35 39: 9(fvec4) Load 38(col0) Store 36(col0) 39 42: 9(fvec4) Load 41(col1) Store 40(col1) 42 46: 6(int) Load 29(a) Store 45(param) 46 48: 6(int) Load 33(b) Store 47(param) 48 50: 9(fvec4) Load 36(col0) Store 49(param) 50 52: 9(fvec4) Load 40(col1) Store 51(param) 52 53: 9(fvec4) FunctionCall 16(@main(i1;i1;vf4;vf4;) 45(param) 47(param) 49(param) 51(param) Store 44(@entryPointOutput) 53 Return FunctionEnd 16(@main(i1;i1;vf4;vf4;): 9(fvec4) Function None 11 12(a): 7(ptr) FunctionParameter 13(b): 7(ptr) FunctionParameter 14(col0): 10(ptr) FunctionParameter 15(col1): 10(ptr) FunctionParameter 17: Label 18: 6(int) Load 12(a) 19: 6(int) Load 13(b) 21: 20(bool) SLessThan 18 19 22: 9(fvec4) Load 14(col0) 23: 9(fvec4) Load 15(col1) 25: 24(bvec4) CompositeConstruct 21 21 21 21 26: 9(fvec4) Select 25 22 23 ReturnValue 26 FunctionEnd