1spv.viewportArray2.vert
2// Module Version 10000
3// Generated by (magic number): 8000a
4// Id's are bound by 19
5
6                              Capability Shader
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 Vertex 4  "main" 11 16 18
14                              Source GLSL 450
15                              SourceExtension  "GL_ARB_shader_viewport_layer_array"
16                              SourceExtension  "GL_NV_viewport_array2"
17                              Name 4  "main"
18                              Name 11  "gl_ViewportMask"
19                              Name 16  "gl_ViewportIndex"
20                              Name 18  "gl_Layer"
21                              Decorate 11(gl_ViewportMask) BuiltIn ViewportMaskNV
22                              Decorate 16(gl_ViewportIndex) BuiltIn ViewportIndex
23                              Decorate 18(gl_Layer) BuiltIn Layer
24                              Decorate 18(gl_Layer) ViewportRelativeNV
25               2:             TypeVoid
26               3:             TypeFunction 2
27               6:             TypeInt 32 1
28               7:             TypeInt 32 0
29               8:      7(int) Constant 1
30               9:             TypeArray 6(int) 8
31              10:             TypePointer Output 9
3211(gl_ViewportMask):     10(ptr) Variable Output
33              12:      6(int) Constant 0
34              13:      6(int) Constant 1
35              14:             TypePointer Output 6(int)
3616(gl_ViewportIndex):     14(ptr) Variable Output
37              17:      6(int) Constant 2
38    18(gl_Layer):     14(ptr) Variable Output
39         4(main):           2 Function None 3
40               5:             Label
41              15:     14(ptr) AccessChain 11(gl_ViewportMask) 12
42                              Store 15 13
43                              Store 16(gl_ViewportIndex) 17
44                              Return
45                              FunctionEnd
46