File: hlsl.nested-runtimeArray.frag.out

package info (click to toggle)
glslang 16.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 51,720 kB
  • sloc: cpp: 92,305; yacc: 4,320; sh: 603; python: 305; ansic: 94; javascript: 74; makefile: 17
file content (120 lines) | stat: -rw-r--r-- 5,761 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
hlsl.nested-runtimeArray.frag
Shader version: 500
gl_FragCoord origin is upper left
0:? Sequence
0:7  Function Definition: @main( ( temp float)
0:7    Function Parameters: 
0:?     Sequence
0:8      Branch: Return with expression
0:8        direct index ( temp float)
0:8          a: direct index for structure ( temp unsized 1-element array of float)
0:8            direct index (layout( row_major std430) buffer structure{ temp unsized 1-element array of float a})
0: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})
0: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})
0:8                Constant:
0:8                  0 (const uint)
0:8              Constant:
0:8                0 (const int)
0:8            Constant:
0:8              0 (const int)
0:8          Constant:
0:8            0 (const int)
0:7  Function Definition: main( ( temp void)
0:7    Function Parameters: 
0:?     Sequence
0:7      move second child to first child ( temp float)
0:?         '@entryPointOutput' (layout( location=0) out float)
0:7        Function Call: @main( ( temp float)
0:?   Linker Objects
0:?     '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})
0:?     '@entryPointOutput' (layout( location=0) out float)


Linked fragment stage:


Shader version: 500
gl_FragCoord origin is upper left
0:? Sequence
0:7  Function Definition: @main( ( temp float)
0:7    Function Parameters: 
0:?     Sequence
0:8      Branch: Return with expression
0:8        direct index ( temp float)
0:8          a: direct index for structure ( temp unsized 1-element array of float)
0:8            direct index (layout( row_major std430) buffer structure{ temp unsized 1-element array of float a})
0: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})
0: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})
0:8                Constant:
0:8                  0 (const uint)
0:8              Constant:
0:8                0 (const int)
0:8            Constant:
0:8              0 (const int)
0:8          Constant:
0:8            0 (const int)
0:7  Function Definition: main( ( temp void)
0:7    Function Parameters: 
0:?     Sequence
0:7      move second child to first child ( temp float)
0:?         '@entryPointOutput' (layout( location=0) out float)
0:7        Function Call: @main( ( temp float)
0:?   Linker Objects
0:?     '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})
0:?     '@entryPointOutput' (layout( location=0) out float)

Validation failed
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 26

                              Capability Shader
               1:             ExtInstImport  "GLSL.std.450"
                              MemoryModel Logical GLSL450
                              EntryPoint Fragment 4  "main" 24
                              ExecutionMode 4 OriginUpperLeft
                              Source HLSL 500
                              Name 4  "main"
                              Name 8  "@main("
                              Name 11  "A"
                              MemberName 11(A) 0  "a"
                              Name 13  "B"
                              MemberName 13(B) 0  "@data"
                              Name 15  "B"
                              Name 24  "@entryPointOutput"
                              Decorate 10 ArrayStride 4
                              Decorate 11(A) BufferBlock
                              MemberDecorate 11(A) 0 Offset 0
                              Decorate 12 ArrayStride 4
                              Decorate 13(B) BufferBlock
                              MemberDecorate 13(B) 0 Offset 0
                              Decorate 15(B) Binding 0
                              Decorate 15(B) DescriptorSet 0
                              Decorate 24(@entryPointOutput) Location 0
               2:             TypeVoid
               3:             TypeFunction 2
               6:             TypeFloat 32
               7:             TypeFunction 6(float)
              10:             TypeRuntimeArray 6(float)
           11(A):             TypeStruct 10
              12:             TypeRuntimeArray 11(A)
           13(B):             TypeStruct 12
              14:             TypePointer Uniform 13(B)
           15(B):     14(ptr) Variable Uniform
              16:             TypeInt 32 1
              17:     16(int) Constant 0
              18:             TypePointer Uniform 6(float)
              23:             TypePointer Output 6(float)
24(@entryPointOutput):     23(ptr) Variable Output
         4(main):           2 Function None 3
               5:             Label
              25:    6(float) FunctionCall 8(@main()
                              Store 24(@entryPointOutput) 25
                              Return
                              FunctionEnd
       8(@main():    6(float) Function None 7
               9:             Label
              19:     18(ptr) AccessChain 15(B) 17 17 17 17
              20:    6(float) Load 19
                              ReturnValue 20
                              FunctionEnd