1spv.viewportArray2.tesc
2Validation failed
3// Module Version 10000
4// Generated by (magic number): 8000a
5// Id's are bound by 25
6
7                              Capability Tessellation
8                              Capability ShaderViewportIndexLayerNV
9                              Capability ShaderViewportMaskNV
10                              Extension  "SPV_EXT_shader_viewport_index_layer"
11                              Extension  "SPV_NV_viewport_array2"
12               1:             ExtInstImport  "GLSL.std.450"
13                              MemoryModel Logical GLSL450
14                              EntryPoint TessellationControl 4  "main" 14 16 22 24
15                              ExecutionMode 4 OutputVertices 4
16                              Source GLSL 450
17                              SourceExtension  "GL_NV_viewport_array2"
18                              Name 4  "main"
19                              Name 10  "gl_PerVertex"
20                              MemberName 10(gl_PerVertex) 0  "gl_ViewportMask"
21                              Name 14  "gl_out"
22                              Name 16  "gl_InvocationID"
23                              Name 22  "gl_ViewportIndex"
24                              Name 24  "gl_Layer"
25                              MemberDecorate 10(gl_PerVertex) 0 BuiltIn ViewportMaskNV
26                              Decorate 10(gl_PerVertex) Block
27                              Decorate 16(gl_InvocationID) BuiltIn InvocationId
28                              Decorate 22(gl_ViewportIndex) BuiltIn ViewportIndex
29                              Decorate 24(gl_Layer) BuiltIn Layer
30                              Decorate 24(gl_Layer) ViewportRelativeNV
31               2:             TypeVoid
32               3:             TypeFunction 2
33               6:             TypeInt 32 1
34               7:             TypeInt 32 0
35               8:      7(int) Constant 2
36               9:             TypeArray 6(int) 8
3710(gl_PerVertex):             TypeStruct 9
38              11:      7(int) Constant 4
39              12:             TypeArray 10(gl_PerVertex) 11
40              13:             TypePointer Output 12
41      14(gl_out):     13(ptr) Variable Output
42              15:             TypePointer Input 6(int)
4316(gl_InvocationID):     15(ptr) Variable Input
44              18:      6(int) Constant 0
45              19:      6(int) Constant 1
46              20:             TypePointer Output 6(int)
4722(gl_ViewportIndex):     20(ptr) Variable Output
48              23:      6(int) Constant 2
49    24(gl_Layer):     20(ptr) Variable Output
50         4(main):           2 Function None 3
51               5:             Label
52              17:      6(int) Load 16(gl_InvocationID)
53              21:     20(ptr) AccessChain 14(gl_out) 17 18 18
54                              Store 21 19
55                              Store 22(gl_ViewportIndex) 23
56                              Return
57                              FunctionEnd
58