xavier | eb71cdd | 2017-08-24 08:28:57 +0200 | [diff] [blame] | 1 | hlsl.preprocessor.frag |
| 2 | Shader version: 500 |
| 3 | gl_FragCoord origin is upper left |
| 4 | 0:? Sequence |
| 5 | 0:9 Function Definition: @main(vf4; ( temp 4-component vector of float) |
| 6 | 0:9 Function Parameters: |
| 7 | 0:9 'input' ( in 4-component vector of float) |
| 8 | 0:? Sequence |
| 9 | 0:10 Sequence |
| 10 | 0:10 move second child to first child ( temp 4-component vector of float) |
| 11 | 0:10 'tex' ( temp 4-component vector of float) |
| 12 | 0:10 texture ( temp 4-component vector of float) |
| 13 | 0:10 Construct combined texture-sampler ( temp sampler2D) |
| 14 | 0:10 'test_texture' ( uniform texture2D) |
| 15 | 0:10 'test_texture_ss' ( uniform sampler) |
| 16 | 0:10 vector swizzle ( temp 2-component vector of float) |
| 17 | 0:10 vector swizzle ( temp 2-component vector of float) |
| 18 | 0:10 'input' ( in 4-component vector of float) |
| 19 | 0:10 Sequence |
| 20 | 0:10 Constant: |
| 21 | 0:10 0 (const int) |
| 22 | 0:10 Constant: |
| 23 | 0:10 1 (const int) |
| 24 | 0:10 Sequence |
| 25 | 0:10 Constant: |
| 26 | 0:10 0 (const int) |
| 27 | 0:10 Constant: |
| 28 | 0:10 1 (const int) |
| 29 | 0:11 Branch: Return with expression |
| 30 | 0:11 'tex' ( temp 4-component vector of float) |
| 31 | 0:9 Function Definition: main( ( temp void) |
| 32 | 0:9 Function Parameters: |
| 33 | 0:? Sequence |
| 34 | 0:9 move second child to first child ( temp 4-component vector of float) |
| 35 | 0:? 'input' ( temp 4-component vector of float) |
| 36 | 0:? 'input' (layout( location=0) in 4-component vector of float) |
| 37 | 0:9 move second child to first child ( temp 4-component vector of float) |
| 38 | 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) |
| 39 | 0:9 Function Call: @main(vf4; ( temp 4-component vector of float) |
| 40 | 0:? 'input' ( temp 4-component vector of float) |
| 41 | 0:? Linker Objects |
| 42 | 0:? 'test_texture' ( uniform texture2D) |
| 43 | 0:? 'test_texture_ss' ( uniform sampler) |
| 44 | 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) |
| 45 | 0:? 'input' (layout( location=0) in 4-component vector of float) |
| 46 | |
| 47 | |
| 48 | Linked fragment stage: |
| 49 | |
| 50 | |
| 51 | Shader version: 500 |
| 52 | gl_FragCoord origin is upper left |
| 53 | 0:? Sequence |
| 54 | 0:9 Function Definition: @main(vf4; ( temp 4-component vector of float) |
| 55 | 0:9 Function Parameters: |
| 56 | 0:9 'input' ( in 4-component vector of float) |
| 57 | 0:? Sequence |
| 58 | 0:10 Sequence |
| 59 | 0:10 move second child to first child ( temp 4-component vector of float) |
| 60 | 0:10 'tex' ( temp 4-component vector of float) |
| 61 | 0:10 texture ( temp 4-component vector of float) |
| 62 | 0:10 Construct combined texture-sampler ( temp sampler2D) |
| 63 | 0:10 'test_texture' ( uniform texture2D) |
| 64 | 0:10 'test_texture_ss' ( uniform sampler) |
| 65 | 0:10 vector swizzle ( temp 2-component vector of float) |
| 66 | 0:10 vector swizzle ( temp 2-component vector of float) |
| 67 | 0:10 'input' ( in 4-component vector of float) |
| 68 | 0:10 Sequence |
| 69 | 0:10 Constant: |
| 70 | 0:10 0 (const int) |
| 71 | 0:10 Constant: |
| 72 | 0:10 1 (const int) |
| 73 | 0:10 Sequence |
| 74 | 0:10 Constant: |
| 75 | 0:10 0 (const int) |
| 76 | 0:10 Constant: |
| 77 | 0:10 1 (const int) |
| 78 | 0:11 Branch: Return with expression |
| 79 | 0:11 'tex' ( temp 4-component vector of float) |
| 80 | 0:9 Function Definition: main( ( temp void) |
| 81 | 0:9 Function Parameters: |
| 82 | 0:? Sequence |
| 83 | 0:9 move second child to first child ( temp 4-component vector of float) |
| 84 | 0:? 'input' ( temp 4-component vector of float) |
| 85 | 0:? 'input' (layout( location=0) in 4-component vector of float) |
| 86 | 0:9 move second child to first child ( temp 4-component vector of float) |
| 87 | 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) |
| 88 | 0:9 Function Call: @main(vf4; ( temp 4-component vector of float) |
| 89 | 0:? 'input' ( temp 4-component vector of float) |
| 90 | 0:? Linker Objects |
| 91 | 0:? 'test_texture' ( uniform texture2D) |
| 92 | 0:? 'test_texture_ss' ( uniform sampler) |
| 93 | 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) |
| 94 | 0:? 'input' (layout( location=0) in 4-component vector of float) |
| 95 | |
| 96 | // Module Version 10000 |
John Kessenich | 07ed11f | 2017-10-07 11:33:11 -0600 | [diff] [blame^] | 97 | // Generated by (magic number): 80002 |
xavier | eb71cdd | 2017-08-24 08:28:57 +0200 | [diff] [blame] | 98 | // Id's are bound by 40 |
| 99 | |
| 100 | Capability Shader |
| 101 | 1: ExtInstImport "GLSL.std.450" |
| 102 | MemoryModel Logical GLSL450 |
| 103 | EntryPoint Fragment 4 "main" 33 36 |
| 104 | ExecutionMode 4 OriginUpperLeft |
| 105 | Source HLSL 500 |
| 106 | Name 4 "main" |
| 107 | Name 11 "@main(vf4;" |
| 108 | Name 10 "input" |
| 109 | Name 13 "tex" |
| 110 | Name 16 "test_texture" |
| 111 | Name 20 "test_texture_ss" |
| 112 | Name 31 "input" |
| 113 | Name 33 "input" |
| 114 | Name 36 "@entryPointOutput" |
| 115 | Name 37 "param" |
| 116 | Decorate 16(test_texture) DescriptorSet 0 |
| 117 | Decorate 20(test_texture_ss) DescriptorSet 0 |
| 118 | Decorate 33(input) Location 0 |
| 119 | Decorate 36(@entryPointOutput) Location 0 |
| 120 | 2: TypeVoid |
| 121 | 3: TypeFunction 2 |
| 122 | 6: TypeFloat 32 |
| 123 | 7: TypeVector 6(float) 4 |
| 124 | 8: TypePointer Function 7(fvec4) |
| 125 | 9: TypeFunction 7(fvec4) 8(ptr) |
| 126 | 14: TypeImage 6(float) 2D sampled format:Unknown |
| 127 | 15: TypePointer UniformConstant 14 |
| 128 | 16(test_texture): 15(ptr) Variable UniformConstant |
| 129 | 18: TypeSampler |
| 130 | 19: TypePointer UniformConstant 18 |
| 131 | 20(test_texture_ss): 19(ptr) Variable UniformConstant |
| 132 | 22: TypeSampledImage 14 |
| 133 | 24: TypeVector 6(float) 2 |
| 134 | 32: TypePointer Input 7(fvec4) |
| 135 | 33(input): 32(ptr) Variable Input |
| 136 | 35: TypePointer Output 7(fvec4) |
| 137 | 36(@entryPointOutput): 35(ptr) Variable Output |
| 138 | 4(main): 2 Function None 3 |
| 139 | 5: Label |
| 140 | 31(input): 8(ptr) Variable Function |
| 141 | 37(param): 8(ptr) Variable Function |
| 142 | 34: 7(fvec4) Load 33(input) |
| 143 | Store 31(input) 34 |
| 144 | 38: 7(fvec4) Load 31(input) |
| 145 | Store 37(param) 38 |
| 146 | 39: 7(fvec4) FunctionCall 11(@main(vf4;) 37(param) |
| 147 | Store 36(@entryPointOutput) 39 |
| 148 | Return |
| 149 | FunctionEnd |
| 150 | 11(@main(vf4;): 7(fvec4) Function None 9 |
| 151 | 10(input): 8(ptr) FunctionParameter |
| 152 | 12: Label |
| 153 | 13(tex): 8(ptr) Variable Function |
| 154 | 17: 14 Load 16(test_texture) |
| 155 | 21: 18 Load 20(test_texture_ss) |
| 156 | 23: 22 SampledImage 17 21 |
| 157 | 25: 7(fvec4) Load 10(input) |
| 158 | 26: 24(fvec2) VectorShuffle 25 25 0 1 |
| 159 | 27: 7(fvec4) ImageSampleImplicitLod 23 26 |
| 160 | Store 13(tex) 27 |
| 161 | 28: 7(fvec4) Load 13(tex) |
| 162 | ReturnValue 28 |
| 163 | FunctionEnd |