1spv.stereoViewRendering.vert 2// Module Version 10000 3// Generated by (magic number): 8000a 4// Id's are bound by 27 5 6 Capability Shader 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 Vertex 4 "main" 11 19 23 26 16 Source GLSL 450 17 SourceExtension "GL_NV_stereo_view_rendering" 18 SourceExtension "GL_NV_viewport_array2" 19 Name 4 "main" 20 Name 11 "gl_SecondaryViewportMaskNV" 21 Name 19 "gl_SecondaryPositionNV" 22 Name 21 "gl_PerVertex" 23 MemberName 21(gl_PerVertex) 0 "gl_Position" 24 MemberName 21(gl_PerVertex) 1 "gl_PointSize" 25 MemberName 21(gl_PerVertex) 2 "gl_ClipDistance" 26 MemberName 21(gl_PerVertex) 3 "gl_CullDistance" 27 Name 23 "" 28 Name 26 "gl_Layer" 29 Decorate 11(gl_SecondaryViewportMaskNV) BuiltIn SecondaryViewportMaskNV 30 Decorate 19(gl_SecondaryPositionNV) BuiltIn SecondaryPositionNV 31 MemberDecorate 21(gl_PerVertex) 0 BuiltIn Position 32 MemberDecorate 21(gl_PerVertex) 1 BuiltIn PointSize 33 MemberDecorate 21(gl_PerVertex) 2 BuiltIn ClipDistance 34 MemberDecorate 21(gl_PerVertex) 3 BuiltIn CullDistance 35 Decorate 21(gl_PerVertex) Block 36 Decorate 26(gl_Layer) BuiltIn Layer 37 Decorate 26(gl_Layer) ViewportRelativeNV 38 Decorate 26(gl_Layer) SecondaryViewportRelativeNV 2 39 2: TypeVoid 40 3: TypeFunction 2 41 6: TypeInt 32 1 42 7: TypeInt 32 0 43 8: 7(int) Constant 1 44 9: TypeArray 6(int) 8 45 10: TypePointer Output 9 4611(gl_SecondaryViewportMaskNV): 10(ptr) Variable Output 47 12: 6(int) Constant 0 48 13: 6(int) Constant 1 49 14: TypePointer Output 6(int) 50 16: TypeFloat 32 51 17: TypeVector 16(float) 4 52 18: TypePointer Output 17(fvec4) 5319(gl_SecondaryPositionNV): 18(ptr) Variable Output 54 20: TypeArray 16(float) 8 5521(gl_PerVertex): TypeStruct 17(fvec4) 16(float) 20 20 56 22: TypePointer Output 21(gl_PerVertex) 57 23: 22(ptr) Variable Output 58 26(gl_Layer): 14(ptr) Variable Output 59 4(main): 2 Function None 3 60 5: Label 61 15: 14(ptr) AccessChain 11(gl_SecondaryViewportMaskNV) 12 62 Store 15 13 63 24: 18(ptr) AccessChain 23 12 64 25: 17(fvec4) Load 24 65 Store 19(gl_SecondaryPositionNV) 25 66 Return 67 FunctionEnd 68