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