1spv.stereoViewRendering.tesc 2// Module Version 10000 3// Generated by (magic number): 80008 4// Id's are bound by 42 5 6 Capability Geometry 7 Capability Tessellation 8 Capability ShaderViewportIndexLayerNV 9 Capability ShaderViewportMaskNV 10 Capability ShaderStereoViewNV 11 Extension "SPV_EXT_shader_viewport_index_layer" 12 Extension "SPV_NV_stereo_view_rendering" 13 Extension "SPV_NV_viewport_array2" 14 1: ExtInstImport "GLSL.std.450" 15 MemoryModel Logical GLSL450 16 EntryPoint TessellationControl 4 "main" 16 18 31 41 17 ExecutionMode 4 OutputVertices 4 18 Source GLSL 450 19 SourceExtension "GL_NV_stereo_view_rendering" 20 SourceExtension "GL_NV_viewport_array2" 21 Name 4 "main" 22 Name 12 "gl_PerVertex" 23 MemberName 12(gl_PerVertex) 0 "gl_SecondaryPositionNV" 24 MemberName 12(gl_PerVertex) 1 "gl_SecondaryViewportMaskNV" 25 Name 16 "gl_out" 26 Name 18 "gl_InvocationID" 27 Name 27 "gl_PerVertex" 28 MemberName 27(gl_PerVertex) 0 "gl_Position" 29 MemberName 27(gl_PerVertex) 1 "gl_PointSize" 30 MemberName 27(gl_PerVertex) 2 "gl_ClipDistance" 31 MemberName 27(gl_PerVertex) 3 "gl_CullDistance" 32 MemberName 27(gl_PerVertex) 4 "gl_SecondaryPositionNV" 33 Name 31 "gl_in" 34 Name 41 "gl_Layer" 35 MemberDecorate 12(gl_PerVertex) 0 BuiltIn SecondaryPositionNV 36 MemberDecorate 12(gl_PerVertex) 1 BuiltIn SecondaryViewportMaskNV 37 Decorate 12(gl_PerVertex) Block 38 Decorate 18(gl_InvocationID) BuiltIn InvocationId 39 MemberDecorate 27(gl_PerVertex) 0 BuiltIn Position 40 MemberDecorate 27(gl_PerVertex) 1 BuiltIn PointSize 41 MemberDecorate 27(gl_PerVertex) 2 BuiltIn ClipDistance 42 MemberDecorate 27(gl_PerVertex) 3 BuiltIn CullDistance 43 MemberDecorate 27(gl_PerVertex) 4 BuiltIn SecondaryPositionNV 44 Decorate 27(gl_PerVertex) Block 45 Decorate 41(gl_Layer) BuiltIn Layer 46 Decorate 41(gl_Layer) ViewportRelativeNV 47 Decorate 41(gl_Layer) SecondaryViewportRelativeNV 1 48 2: TypeVoid 49 3: TypeFunction 2 50 6: TypeFloat 32 51 7: TypeVector 6(float) 4 52 8: TypeInt 32 1 53 9: TypeInt 32 0 54 10: 9(int) Constant 2 55 11: TypeArray 8(int) 10 5612(gl_PerVertex): TypeStruct 7(fvec4) 11 57 13: 9(int) Constant 4 58 14: TypeArray 12(gl_PerVertex) 13 59 15: TypePointer Output 14 60 16(gl_out): 15(ptr) Variable Output 61 17: TypePointer Input 8(int) 6218(gl_InvocationID): 17(ptr) Variable Input 63 20: 8(int) Constant 1 64 21: 8(int) Constant 0 65 22: TypePointer Output 8(int) 66 25: 9(int) Constant 1 67 26: TypeArray 6(float) 25 6827(gl_PerVertex): TypeStruct 7(fvec4) 6(float) 26 26 7(fvec4) 69 28: 9(int) Constant 32 70 29: TypeArray 27(gl_PerVertex) 28 71 30: TypePointer Input 29 72 31(gl_in): 30(ptr) Variable Input 73 32: TypePointer Input 7(fvec4) 74 35: 8(int) Constant 4 75 39: TypePointer Output 7(fvec4) 76 41(gl_Layer): 22(ptr) Variable Output 77 4(main): 2 Function None 3 78 5: Label 79 19: 8(int) Load 18(gl_InvocationID) 80 23: 22(ptr) AccessChain 16(gl_out) 19 20 21 81 Store 23 20 82 24: 8(int) Load 18(gl_InvocationID) 83 33: 32(ptr) AccessChain 31(gl_in) 20 21 84 34: 7(fvec4) Load 33 85 36: 32(ptr) AccessChain 31(gl_in) 20 35 86 37: 7(fvec4) Load 36 87 38: 7(fvec4) FAdd 34 37 88 40: 39(ptr) AccessChain 16(gl_out) 24 21 89 Store 40 38 90 Return 91 FunctionEnd 92