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