• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1hlsl.y-negate-1.vert
2Shader version: 500
30:? Sequence
40:7  Function Definition: @main( ( temp 4-component vector of float)
50:7    Function Parameters:
60:?     Sequence
70:8      Branch: Return with expression
80:8        pos: direct index for structure ( uniform 4-component vector of float)
90:8          'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float pos})
100:8          Constant:
110:8            0 (const uint)
120:7  Function Definition: main( ( temp void)
130:7    Function Parameters:
140:?     Sequence
150:7      Sequence
160:7        move second child to first child ( temp 4-component vector of float)
170:7          '@position' ( temp 4-component vector of float)
180:7          Function Call: @main( ( temp 4-component vector of float)
190:7        move second child to first child ( temp float)
200:7          direct index ( temp float)
210:7            '@position' ( temp 4-component vector of float)
220:7            Constant:
230:7              1 (const int)
240:7          Negate value ( temp float)
250:7            direct index ( temp float)
260:7              '@position' ( temp 4-component vector of float)
270:7              Constant:
280:7                1 (const int)
290:7        move second child to first child ( temp 4-component vector of float)
300:?           '@entryPointOutput' ( out 4-component vector of float Position)
310:7          '@position' ( temp 4-component vector of float)
320:?   Linker Objects
330:?     'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float pos})
340:?     '@entryPointOutput' ( out 4-component vector of float Position)
35
36
37Linked vertex stage:
38
39
40Shader version: 500
410:? Sequence
420:7  Function Definition: @main( ( temp 4-component vector of float)
430:7    Function Parameters:
440:?     Sequence
450:8      Branch: Return with expression
460:8        pos: direct index for structure ( uniform 4-component vector of float)
470:8          'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float pos})
480:8          Constant:
490:8            0 (const uint)
500:7  Function Definition: main( ( temp void)
510:7    Function Parameters:
520:?     Sequence
530:7      Sequence
540:7        move second child to first child ( temp 4-component vector of float)
550:7          '@position' ( temp 4-component vector of float)
560:7          Function Call: @main( ( temp 4-component vector of float)
570:7        move second child to first child ( temp float)
580:7          direct index ( temp float)
590:7            '@position' ( temp 4-component vector of float)
600:7            Constant:
610:7              1 (const int)
620:7          Negate value ( temp float)
630:7            direct index ( temp float)
640:7              '@position' ( temp 4-component vector of float)
650:7              Constant:
660:7                1 (const int)
670:7        move second child to first child ( temp 4-component vector of float)
680:?           '@entryPointOutput' ( out 4-component vector of float Position)
690:7          '@position' ( temp 4-component vector of float)
700:?   Linker Objects
710:?     'anon@0' (layout( row_major std140) uniform block{ uniform 4-component vector of float pos})
720:?     '@entryPointOutput' ( out 4-component vector of float Position)
73
74// Module Version 10000
75// Generated by (magic number): 8000a
76// Id's are bound by 34
77
78                              Capability Shader
79               1:             ExtInstImport  "GLSL.std.450"
80                              MemoryModel Logical GLSL450
81                              EntryPoint Vertex 4  "main" 32
82                              Source HLSL 500
83                              Name 4  "main"
84                              Name 9  "@main("
85                              Name 11  "$Global"
86                              MemberName 11($Global) 0  "pos"
87                              Name 13  ""
88                              Name 22  "@position"
89                              Name 32  "@entryPointOutput"
90                              MemberDecorate 11($Global) 0 Offset 0
91                              Decorate 11($Global) Block
92                              Decorate 13 DescriptorSet 0
93                              Decorate 13 Binding 0
94                              Decorate 32(@entryPointOutput) BuiltIn Position
95               2:             TypeVoid
96               3:             TypeFunction 2
97               6:             TypeFloat 32
98               7:             TypeVector 6(float) 4
99               8:             TypeFunction 7(fvec4)
100     11($Global):             TypeStruct 7(fvec4)
101              12:             TypePointer Uniform 11($Global)
102              13:     12(ptr) Variable Uniform
103              14:             TypeInt 32 1
104              15:     14(int) Constant 0
105              16:             TypePointer Uniform 7(fvec4)
106              21:             TypePointer Function 7(fvec4)
107              24:             TypeInt 32 0
108              25:     24(int) Constant 1
109              26:             TypePointer Function 6(float)
110              31:             TypePointer Output 7(fvec4)
11132(@entryPointOutput):     31(ptr) Variable Output
112         4(main):           2 Function None 3
113               5:             Label
114   22(@position):     21(ptr) Variable Function
115              23:    7(fvec4) FunctionCall 9(@main()
116                              Store 22(@position) 23
117              27:     26(ptr) AccessChain 22(@position) 25
118              28:    6(float) Load 27
119              29:    6(float) FNegate 28
120              30:     26(ptr) AccessChain 22(@position) 25
121                              Store 30 29
122              33:    7(fvec4) Load 22(@position)
123                              Store 32(@entryPointOutput) 33
124                              Return
125                              FunctionEnd
126       9(@main():    7(fvec4) Function None 8
127              10:             Label
128              17:     16(ptr) AccessChain 13 15
129              18:    7(fvec4) Load 17
130                              ReturnValue 18
131                              FunctionEnd
132