1 spv.viewportArray2.tesc
2 // Module Version 10000
3 // Generated by (magic number): 8000a
4 // Id's are bound by 23
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
16 SourceExtension "GL_NV_viewport_array2"
18 Name 10 "gl_PerVertex"
19 MemberName 10(gl_PerVertex) 0 "gl_ViewportMask"
21 Name 16 "gl_InvocationID"
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
34 10(gl_PerVertex): TypeStruct 9
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)
40 16(gl_InvocationID): 15(ptr) Variable Input
43 20: TypePointer Output 6(int)
44 22(gl_Layer): 20(ptr) Variable Output
45 4(main): 2 Function None 3
47 17: 6(int) Load 16(gl_InvocationID)
48 21: 20(ptr) AccessChain 14(gl_out) 17 18 18