yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Alan BakerUpdate test expectationsc5fd7d66

main
5.6 KiB120 linesraw
1hlsl.nested-runtimeArray.frag
2Shader version: 500
3gl_FragCoord origin is upper left
40:? Sequence
50:7  Function Definition: @main( ( temp float)
60:7    Function Parameters: 
70:?     Sequence
80:8      Branch: Return with expression
90:8        direct index ( temp float)
100:8          a: direct index for structure ( temp unsized 1-element array of float)
110:8            direct index (layout( row_major std430) buffer structure{ temp unsized 1-element array of float a})
120:8              @data: direct index for structure (layout( row_major std430) buffer unsized 1-element array of structure{ temp unsized 1-element array of float a})
130:8                'B' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-element array of structure{ temp unsized 1-element array of float a} @data})
140:8                Constant:
150:8                  0 (const uint)
160:8              Constant:
170:8                0 (const int)
180:8            Constant:
190:8              0 (const int)
200:8          Constant:
210:8            0 (const int)
220:7  Function Definition: main( ( temp void)
230:7    Function Parameters: 
240:?     Sequence
250:7      move second child to first child ( temp float)
260:?         '@entryPointOutput' (layout( location=0) out float)
270:7        Function Call: @main( ( temp float)
280:?   Linker Objects
290:?     'B' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-element array of structure{ temp unsized 1-element array of float a} @data})
300:?     '@entryPointOutput' (layout( location=0) out float)
31
32
33Linked fragment stage:
34
35
36Shader version: 500
37gl_FragCoord origin is upper left
380:? Sequence
390:7  Function Definition: @main( ( temp float)
400:7    Function Parameters: 
410:?     Sequence
420:8      Branch: Return with expression
430:8        direct index ( temp float)
440:8          a: direct index for structure ( temp unsized 1-element array of float)
450:8            direct index (layout( row_major std430) buffer structure{ temp unsized 1-element array of float a})
460:8              @data: direct index for structure (layout( row_major std430) buffer unsized 1-element array of structure{ temp unsized 1-element array of float a})
470:8                'B' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-element array of structure{ temp unsized 1-element array of float a} @data})
480:8                Constant:
490:8                  0 (const uint)
500:8              Constant:
510:8                0 (const int)
520:8            Constant:
530:8              0 (const int)
540:8          Constant:
550:8            0 (const int)
560:7  Function Definition: main( ( temp void)
570:7    Function Parameters: 
580:?     Sequence
590:7      move second child to first child ( temp float)
600:?         '@entryPointOutput' (layout( location=0) out float)
610:7        Function Call: @main( ( temp float)
620:?   Linker Objects
630:?     'B' (layout( row_major std430) buffer block{layout( row_major std430) buffer unsized 1-element array of structure{ temp unsized 1-element array of float a} @data})
640:?     '@entryPointOutput' (layout( location=0) out float)
65
66Validation failed
67// Module Version 10000
68// Generated by (magic number): 8000b
69// Id's are bound by 26
70
71                              Capability Shader
72               1:             ExtInstImport  "GLSL.std.450"
73                              MemoryModel Logical GLSL450
74                              EntryPoint Fragment 4  "main" 24
75                              ExecutionMode 4 OriginUpperLeft
76                              Source HLSL 500
77                              Name 4  "main"
78                              Name 8  "@main("
79                              Name 11  "A"
80                              MemberName 11(A) 0  "a"
81                              Name 13  "B"
82                              MemberName 13(B) 0  "@data"
83                              Name 15  "B"
84                              Name 24  "@entryPointOutput"
85                              Decorate 10 ArrayStride 4
86                              Decorate 11(A) BufferBlock
87                              MemberDecorate 11(A) 0 Offset 0
88                              Decorate 12 ArrayStride 4
89                              Decorate 13(B) BufferBlock
90                              MemberDecorate 13(B) 0 Offset 0
91                              Decorate 15(B) Binding 0
92                              Decorate 15(B) DescriptorSet 0
93                              Decorate 24(@entryPointOutput) Location 0
94               2:             TypeVoid
95               3:             TypeFunction 2
96               6:             TypeFloat 32
97               7:             TypeFunction 6(float)
98              10:             TypeRuntimeArray 6(float)
99           11(A):             TypeStruct 10
100              12:             TypeRuntimeArray 11(A)
101           13(B):             TypeStruct 12
102              14:             TypePointer Uniform 13(B)
103           15(B):     14(ptr) Variable Uniform
104              16:             TypeInt 32 1
105              17:     16(int) Constant 0
106              18:             TypePointer Uniform 6(float)
107              23:             TypePointer Output 6(float)
10824(@entryPointOutput):     23(ptr) Variable Output
109         4(main):           2 Function None 3
110               5:             Label
111              25:    6(float) FunctionCall 8(@main()
112                              Store 24(@entryPointOutput) 25
113                              Return
114                              FunctionEnd
115       8(@main():    6(float) Function None 7
116               9:             Label
117              19:     18(ptr) AccessChain 15(B) 17 17 17 17
118              20:    6(float) Load 19
119                              ReturnValue 20
120                              FunctionEnd