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