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