steve-lunarg | a766b83 | 2017-04-25 09:30:28 -0600 | [diff] [blame] | 1 | hlsl.constantbuffer.frag |
| 2 | Shader version: 500 |
| 3 | gl_FragCoord origin is upper left |
| 4 | 0:? Sequence |
| 5 | 0:20 Function Definition: @main( ( temp 4-component vector of float) |
| 6 | 0:20 Function Parameters: |
| 7 | 0:? Sequence |
| 8 | 0:21 Test condition and select ( temp void) |
| 9 | 0:21 Condition |
| 10 | 0:21 x: direct index for structure (layout( row_major std140) uniform bool) |
| 11 | 0:21 direct index (layout( row_major std140) temp block{layout( row_major std140) uniform bool x, layout( row_major std140) uniform float y}) |
| 12 | 0:21 direct index (layout( row_major std140) temp 4-element array of block{layout( row_major std140) uniform bool x, layout( row_major std140) uniform float y}) |
| 13 | 0:21 'cb3' (layout( row_major std140) uniform 2-element array of 4-element array of block{layout( row_major std140) uniform bool x, layout( row_major std140) uniform float y}) |
| 14 | 0:21 Constant: |
| 15 | 0:21 1 (const int) |
| 16 | 0:21 Constant: |
| 17 | 0:21 2 (const int) |
| 18 | 0:21 Constant: |
| 19 | 0:21 0 (const int) |
| 20 | 0:21 true case |
| 21 | 0:22 Branch: Return with expression |
| 22 | 0:22 add ( temp 4-component vector of float) |
| 23 | 0:22 add ( temp 4-component vector of float) |
| 24 | 0:22 x: direct index for structure (layout( row_major std140) uniform 4-component vector of float) |
| 25 | 0:22 'cb1' (layout( binding=12 row_major std140) uniform block{layout( row_major std140) uniform 4-component vector of float x}) |
| 26 | 0:22 Constant: |
| 27 | 0:22 0 (const int) |
| 28 | 0:22 y: direct index for structure (layout( row_major std140) uniform float) |
| 29 | 0:22 direct index (layout( row_major std140) temp block{layout( row_major std140) uniform bool x, layout( row_major std140) uniform float y}) |
| 30 | 0:22 'cb2' (layout( row_major std140) uniform 3-element array of block{layout( row_major std140) uniform bool x, layout( row_major std140) uniform float y}) |
| 31 | 0:22 Constant: |
| 32 | 0:22 1 (const int) |
| 33 | 0:22 Constant: |
| 34 | 0:22 1 (const int) |
| 35 | 0:22 Convert int to float ( temp float) |
| 36 | 0:22 c1: direct index for structure (layout( row_major std140) uniform int) |
| 37 | 0:22 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform int c1}) |
| 38 | 0:22 Constant: |
| 39 | 0:22 0 (const uint) |
| 40 | 0:21 false case |
| 41 | 0:24 Branch: Return with expression |
| 42 | 0:24 Construct vec4 ( temp 4-component vector of float) |
| 43 | 0:24 y: direct index for structure (layout( row_major std140) uniform float) |
| 44 | 0:24 direct index (layout( row_major std140) temp block{layout( row_major std140) uniform bool x, layout( row_major std140) uniform float y}) |
| 45 | 0:24 direct index (layout( row_major std140) temp 4-element array of block{layout( row_major std140) uniform bool x, layout( row_major std140) uniform float y}) |
| 46 | 0:24 'cb3' (layout( row_major std140) uniform 2-element array of 4-element array of block{layout( row_major std140) uniform bool x, layout( row_major std140) uniform float y}) |
| 47 | 0:24 Constant: |
John Kessenich | bdbbc68 | 2017-09-14 19:45:28 -0600 | [diff] [blame] | 48 | 0:24 1 (const int) |
steve-lunarg | a766b83 | 2017-04-25 09:30:28 -0600 | [diff] [blame] | 49 | 0:24 Constant: |
| 50 | 0:24 3 (const int) |
| 51 | 0:24 Constant: |
| 52 | 0:24 1 (const int) |
| 53 | 0:20 Function Definition: main( ( temp void) |
| 54 | 0:20 Function Parameters: |
| 55 | 0:? Sequence |
| 56 | 0:20 move second child to first child ( temp 4-component vector of float) |
| 57 | 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) |
| 58 | 0:20 Function Call: @main( ( temp 4-component vector of float) |
| 59 | 0:? Linker Objects |
| 60 | 0:? 'cb1' (layout( binding=12 row_major std140) uniform block{layout( row_major std140) uniform 4-component vector of float x}) |
| 61 | 0:? 'cb2' (layout( row_major std140) uniform 3-element array of block{layout( row_major std140) uniform bool x, layout( row_major std140) uniform float y}) |
| 62 | 0:? 'cb3' (layout( row_major std140) uniform 2-element array of 4-element array of block{layout( row_major std140) uniform bool x, layout( row_major std140) uniform float y}) |
| 63 | 0:? 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform int c1}) |
| 64 | 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) |
| 65 | |
| 66 | |
| 67 | Linked fragment stage: |
| 68 | |
| 69 | |
| 70 | Shader version: 500 |
| 71 | gl_FragCoord origin is upper left |
| 72 | 0:? Sequence |
| 73 | 0:20 Function Definition: @main( ( temp 4-component vector of float) |
| 74 | 0:20 Function Parameters: |
| 75 | 0:? Sequence |
| 76 | 0:21 Test condition and select ( temp void) |
| 77 | 0:21 Condition |
| 78 | 0:21 x: direct index for structure (layout( row_major std140) uniform bool) |
| 79 | 0:21 direct index (layout( row_major std140) temp block{layout( row_major std140) uniform bool x, layout( row_major std140) uniform float y}) |
| 80 | 0:21 direct index (layout( row_major std140) temp 4-element array of block{layout( row_major std140) uniform bool x, layout( row_major std140) uniform float y}) |
| 81 | 0:21 'cb3' (layout( row_major std140) uniform 2-element array of 4-element array of block{layout( row_major std140) uniform bool x, layout( row_major std140) uniform float y}) |
| 82 | 0:21 Constant: |
| 83 | 0:21 1 (const int) |
| 84 | 0:21 Constant: |
| 85 | 0:21 2 (const int) |
| 86 | 0:21 Constant: |
| 87 | 0:21 0 (const int) |
| 88 | 0:21 true case |
| 89 | 0:22 Branch: Return with expression |
| 90 | 0:22 add ( temp 4-component vector of float) |
| 91 | 0:22 add ( temp 4-component vector of float) |
| 92 | 0:22 x: direct index for structure (layout( row_major std140) uniform 4-component vector of float) |
| 93 | 0:22 'cb1' (layout( binding=12 row_major std140) uniform block{layout( row_major std140) uniform 4-component vector of float x}) |
| 94 | 0:22 Constant: |
| 95 | 0:22 0 (const int) |
| 96 | 0:22 y: direct index for structure (layout( row_major std140) uniform float) |
| 97 | 0:22 direct index (layout( row_major std140) temp block{layout( row_major std140) uniform bool x, layout( row_major std140) uniform float y}) |
| 98 | 0:22 'cb2' (layout( row_major std140) uniform 3-element array of block{layout( row_major std140) uniform bool x, layout( row_major std140) uniform float y}) |
| 99 | 0:22 Constant: |
| 100 | 0:22 1 (const int) |
| 101 | 0:22 Constant: |
| 102 | 0:22 1 (const int) |
| 103 | 0:22 Convert int to float ( temp float) |
| 104 | 0:22 c1: direct index for structure (layout( row_major std140) uniform int) |
| 105 | 0:22 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform int c1}) |
| 106 | 0:22 Constant: |
| 107 | 0:22 0 (const uint) |
| 108 | 0:21 false case |
| 109 | 0:24 Branch: Return with expression |
| 110 | 0:24 Construct vec4 ( temp 4-component vector of float) |
| 111 | 0:24 y: direct index for structure (layout( row_major std140) uniform float) |
| 112 | 0:24 direct index (layout( row_major std140) temp block{layout( row_major std140) uniform bool x, layout( row_major std140) uniform float y}) |
| 113 | 0:24 direct index (layout( row_major std140) temp 4-element array of block{layout( row_major std140) uniform bool x, layout( row_major std140) uniform float y}) |
| 114 | 0:24 'cb3' (layout( row_major std140) uniform 2-element array of 4-element array of block{layout( row_major std140) uniform bool x, layout( row_major std140) uniform float y}) |
| 115 | 0:24 Constant: |
John Kessenich | bdbbc68 | 2017-09-14 19:45:28 -0600 | [diff] [blame] | 116 | 0:24 1 (const int) |
steve-lunarg | a766b83 | 2017-04-25 09:30:28 -0600 | [diff] [blame] | 117 | 0:24 Constant: |
| 118 | 0:24 3 (const int) |
| 119 | 0:24 Constant: |
| 120 | 0:24 1 (const int) |
| 121 | 0:20 Function Definition: main( ( temp void) |
| 122 | 0:20 Function Parameters: |
| 123 | 0:? Sequence |
| 124 | 0:20 move second child to first child ( temp 4-component vector of float) |
| 125 | 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) |
| 126 | 0:20 Function Call: @main( ( temp 4-component vector of float) |
| 127 | 0:? Linker Objects |
| 128 | 0:? 'cb1' (layout( binding=12 row_major std140) uniform block{layout( row_major std140) uniform 4-component vector of float x}) |
| 129 | 0:? 'cb2' (layout( row_major std140) uniform 3-element array of block{layout( row_major std140) uniform bool x, layout( row_major std140) uniform float y}) |
| 130 | 0:? 'cb3' (layout( row_major std140) uniform 2-element array of 4-element array of block{layout( row_major std140) uniform bool x, layout( row_major std140) uniform float y}) |
| 131 | 0:? 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform int c1}) |
| 132 | 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) |
| 133 | |
| 134 | // Module Version 10000 |
John Kessenich | 07ed11f | 2017-10-07 11:33:11 -0600 | [diff] [blame^] | 135 | // Generated by (magic number): 80002 |
steve-lunarg | a766b83 | 2017-04-25 09:30:28 -0600 | [diff] [blame] | 136 | // Id's are bound by 66 |
| 137 | |
| 138 | Capability Shader |
| 139 | 1: ExtInstImport "GLSL.std.450" |
| 140 | MemoryModel Logical GLSL450 |
| 141 | EntryPoint Fragment 4 "main" 64 |
| 142 | ExecutionMode 4 OriginUpperLeft |
| 143 | Source HLSL 500 |
| 144 | Name 4 "main" |
| 145 | Name 9 "@main(" |
| 146 | Name 12 "cb3" |
| 147 | MemberName 12(cb3) 0 "x" |
| 148 | MemberName 12(cb3) 1 "y" |
| 149 | Name 18 "cb3" |
| 150 | Name 31 "cb1" |
| 151 | MemberName 31(cb1) 0 "x" |
| 152 | Name 33 "cb1" |
| 153 | Name 40 "cb2" |
| 154 | Name 46 "cbuff" |
| 155 | MemberName 46(cbuff) 0 "c1" |
| 156 | Name 48 "" |
| 157 | Name 64 "@entryPointOutput" |
| 158 | MemberDecorate 12(cb3) 0 Offset 0 |
| 159 | MemberDecorate 12(cb3) 1 Offset 4 |
| 160 | Decorate 12(cb3) Block |
| 161 | Decorate 18(cb3) DescriptorSet 0 |
| 162 | MemberDecorate 31(cb1) 0 Offset 0 |
| 163 | Decorate 31(cb1) Block |
| 164 | Decorate 33(cb1) DescriptorSet 0 |
| 165 | Decorate 33(cb1) Binding 12 |
| 166 | Decorate 40(cb2) DescriptorSet 0 |
| 167 | MemberDecorate 46(cbuff) 0 Offset 0 |
| 168 | Decorate 46(cbuff) Block |
| 169 | Decorate 48 DescriptorSet 0 |
| 170 | Decorate 64(@entryPointOutput) Location 0 |
| 171 | 2: TypeVoid |
| 172 | 3: TypeFunction 2 |
| 173 | 6: TypeFloat 32 |
| 174 | 7: TypeVector 6(float) 4 |
| 175 | 8: TypeFunction 7(fvec4) |
| 176 | 11: TypeInt 32 0 |
| 177 | 12(cb3): TypeStruct 11(int) 6(float) |
| 178 | 13: 11(int) Constant 4 |
| 179 | 14: TypeArray 12(cb3) 13 |
| 180 | 15: 11(int) Constant 2 |
| 181 | 16: TypeArray 14 15 |
| 182 | 17: TypePointer Uniform 16 |
| 183 | 18(cb3): 17(ptr) Variable Uniform |
| 184 | 19: TypeInt 32 1 |
| 185 | 20: 19(int) Constant 1 |
| 186 | 21: 19(int) Constant 2 |
| 187 | 22: 19(int) Constant 0 |
| 188 | 23: TypePointer Uniform 11(int) |
| 189 | 26: TypeBool |
| 190 | 27: 11(int) Constant 0 |
| 191 | 31(cb1): TypeStruct 7(fvec4) |
| 192 | 32: TypePointer Uniform 31(cb1) |
| 193 | 33(cb1): 32(ptr) Variable Uniform |
| 194 | 34: TypePointer Uniform 7(fvec4) |
| 195 | 37: 11(int) Constant 3 |
| 196 | 38: TypeArray 12(cb3) 37 |
| 197 | 39: TypePointer Uniform 38 |
| 198 | 40(cb2): 39(ptr) Variable Uniform |
| 199 | 41: TypePointer Uniform 6(float) |
| 200 | 46(cbuff): TypeStruct 19(int) |
| 201 | 47: TypePointer Uniform 46(cbuff) |
| 202 | 48: 47(ptr) Variable Uniform |
| 203 | 49: TypePointer Uniform 19(int) |
| 204 | 57: 19(int) Constant 3 |
| 205 | 63: TypePointer Output 7(fvec4) |
| 206 | 64(@entryPointOutput): 63(ptr) Variable Output |
| 207 | 4(main): 2 Function None 3 |
| 208 | 5: Label |
| 209 | 65: 7(fvec4) FunctionCall 9(@main() |
| 210 | Store 64(@entryPointOutput) 65 |
| 211 | Return |
| 212 | FunctionEnd |
| 213 | 9(@main(): 7(fvec4) Function None 8 |
| 214 | 10: Label |
| 215 | 24: 23(ptr) AccessChain 18(cb3) 20 21 22 |
| 216 | 25: 11(int) Load 24 |
| 217 | 28: 26(bool) INotEqual 25 27 |
| 218 | SelectionMerge 30 None |
| 219 | BranchConditional 28 29 56 |
| 220 | 29: Label |
| 221 | 35: 34(ptr) AccessChain 33(cb1) 22 |
| 222 | 36: 7(fvec4) Load 35 |
| 223 | 42: 41(ptr) AccessChain 40(cb2) 20 20 |
| 224 | 43: 6(float) Load 42 |
| 225 | 44: 7(fvec4) CompositeConstruct 43 43 43 43 |
| 226 | 45: 7(fvec4) FAdd 36 44 |
| 227 | 50: 49(ptr) AccessChain 48 22 |
| 228 | 51: 19(int) Load 50 |
| 229 | 52: 6(float) ConvertSToF 51 |
| 230 | 53: 7(fvec4) CompositeConstruct 52 52 52 52 |
| 231 | 54: 7(fvec4) FAdd 45 53 |
| 232 | ReturnValue 54 |
| 233 | 56: Label |
John Kessenich | bdbbc68 | 2017-09-14 19:45:28 -0600 | [diff] [blame] | 234 | 58: 41(ptr) AccessChain 18(cb3) 20 57 20 |
steve-lunarg | a766b83 | 2017-04-25 09:30:28 -0600 | [diff] [blame] | 235 | 59: 6(float) Load 58 |
| 236 | 60: 7(fvec4) CompositeConstruct 59 59 59 59 |
| 237 | ReturnValue 60 |
| 238 | 30: Label |
| 239 | 62: 7(fvec4) Undef |
| 240 | ReturnValue 62 |
| 241 | FunctionEnd |