1 hlsl.intrinsics.d3dcolortoubyte4.frag 2 Shader version: 500 3 gl_FragCoord origin is upper left 4 0:? Sequence 5 0:5 Function Definition: @main( ( temp 4-component vector of int) 6 0:5 Function Parameters: 7 0:? Sequence 8 0:6 Branch: Return with expression 9 0:6 Convert float to int ( temp 4-component vector of int) 10 0:6 vector-scale ( temp 4-component vector of float) 11 0:6 Constant: 12 0:6 255.001953 13 0:6 vector swizzle ( temp 4-component vector of float) 14 0:6 col4: direct index for structure ( uniform 4-component vector of float) 15 0:6 'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float col4}) 16 0:6 Constant: 17 0:6 0 (const uint) 18 0:6 Sequence 19 0:6 Constant: 20 0:6 2 (const int) 21 0:6 Constant: 22 0:6 1 (const int) 23 0:6 Constant: 24 0:6 0 (const int) 25 0:6 Constant: 26 0:6 3 (const int) 27 0:5 Function Definition: main( ( temp void) 28 0:5 Function Parameters: 29 0:? Sequence 30 0:5 move second child to first child ( temp 4-component vector of int) 31 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of int) 32 0:5 Function Call: @main( ( temp 4-component vector of int) 33 0:? Linker Objects 34 0:? 'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float col4}) 35 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of int) 36 37 38 Linked fragment stage: 39 40 41 Shader version: 500 42 gl_FragCoord origin is upper left 43 0:? Sequence 44 0:5 Function Definition: @main( ( temp 4-component vector of int) 45 0:5 Function Parameters: 46 0:? Sequence 47 0:6 Branch: Return with expression 48 0:6 Convert float to int ( temp 4-component vector of int) 49 0:6 vector-scale ( temp 4-component vector of float) 50 0:6 Constant: 51 0:6 255.001953 52 0:6 vector swizzle ( temp 4-component vector of float) 53 0:6 col4: direct index for structure ( uniform 4-component vector of float) 54 0:6 'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float col4}) 55 0:6 Constant: 56 0:6 0 (const uint) 57 0:6 Sequence 58 0:6 Constant: 59 0:6 2 (const int) 60 0:6 Constant: 61 0:6 1 (const int) 62 0:6 Constant: 63 0:6 0 (const int) 64 0:6 Constant: 65 0:6 3 (const int) 66 0:5 Function Definition: main( ( temp void) 67 0:5 Function Parameters: 68 0:? Sequence 69 0:5 move second child to first child ( temp 4-component vector of int) 70 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of int) 71 0:5 Function Call: @main( ( temp 4-component vector of int) 72 0:? Linker Objects 73 0:? 'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float col4}) 74 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of int) 75 76 // Module Version 10000 77 // Generated by (magic number): 80007 78 // Id's are bound by 29 79 80 Capability Shader 81 1: ExtInstImport "GLSL.std.450" 82 MemoryModel Logical GLSL450 83 EntryPoint Fragment 4 "main" 27 84 ExecutionMode 4 OriginUpperLeft 85 Source HLSL 500 86 Name 4 "main" 87 Name 9 "@main(" 88 Name 14 "$Global" 89 MemberName 14($Global) 0 "col4" 90 Name 16 "" 91 Name 27 "@entryPointOutput" 92 MemberDecorate 14($Global) 0 Offset 0 93 Decorate 14($Global) Block 94 Decorate 16 DescriptorSet 0 95 Decorate 16 Binding 0 96 Decorate 27(@entryPointOutput) Location 0 97 2: TypeVoid 98 3: TypeFunction 2 99 6: TypeInt 32 1 100 7: TypeVector 6(int) 4 101 8: TypeFunction 7(ivec4) 102 11: TypeFloat 32 103 12: 11(float) Constant 1132396672 104 13: TypeVector 11(float) 4 105 14($Global): TypeStruct 13(fvec4) 106 15: TypePointer Uniform 14($Global) 107 16: 15(ptr) Variable Uniform 108 17: 6(int) Constant 0 109 18: TypePointer Uniform 13(fvec4) 110 26: TypePointer Output 7(ivec4) 111 27(@entryPointOutput): 26(ptr) Variable Output 112 4(main): 2 Function None 3 113 5: Label 114 28: 7(ivec4) FunctionCall 9(@main() 115 Store 27(@entryPointOutput) 28 116 Return 117 FunctionEnd 118 9(@main(): 7(ivec4) Function None 8 119 10: Label 120 19: 18(ptr) AccessChain 16 17 121 20: 13(fvec4) Load 19 122 21: 13(fvec4) VectorShuffle 20 20 2 1 0 3 123 22: 13(fvec4) VectorTimesScalar 21 12 124 23: 7(ivec4) ConvertFToS 22 125 ReturnValue 23 126 FunctionEnd 127