1 spv.meshShaderPerViewUserDefined.mesh 2 // Module Version 10000 3 // Generated by (magic number): 80007 4 // Id's are bound by 90 5 6 Capability MeshShadingNV 7 Extension "SPV_NV_mesh_shader" 8 1: ExtInstImport "GLSL.std.450" 9 MemoryModel Logical GLSL450 10 EntryPoint MeshNV 4 "main" 11 20 21 35 67 11 ExecutionMode 4 LocalSize 32 1 1 12 ExecutionMode 4 OutputVertices 81 13 ExecutionMode 4 OutputPrimitivesNV 32 14 ExecutionMode 4 OutputTrianglesNV 15 Source GLSL 450 16 SourceExtension "GL_NV_mesh_shader" 17 Name 4 "main" 18 Name 8 "iid" 19 Name 11 "gl_LocalInvocationID" 20 Name 16 "viewID" 21 Name 20 "gl_MeshViewIndicesNV" 22 Name 21 "gl_MeshViewCountNV" 23 Name 31 "block" 24 MemberName 31(block) 0 "color1" 25 MemberName 31(block) 1 "color2" 26 MemberName 31(block) 2 "color3" 27 MemberName 31(block) 3 "color4" 28 Name 35 "b" 29 Name 64 "perviewBlock" 30 MemberName 64(perviewBlock) 0 "color5" 31 MemberName 64(perviewBlock) 1 "color6" 32 MemberName 64(perviewBlock) 2 "color7" 33 MemberName 64(perviewBlock) 3 "color8" 34 Name 67 "b2" 35 Decorate 11(gl_LocalInvocationID) BuiltIn LocalInvocationId 36 Decorate 20(gl_MeshViewIndicesNV) BuiltIn MeshViewIndicesNV 37 Decorate 21(gl_MeshViewCountNV) BuiltIn MeshViewCountNV 38 MemberDecorate 31(block) 0 PerPrimitiveNV 39 MemberDecorate 31(block) 0 PerViewNV 40 MemberDecorate 31(block) 1 PerPrimitiveNV 41 MemberDecorate 31(block) 2 PerViewNV 42 Decorate 31(block) Block 43 Decorate 35(b) Location 0 44 MemberDecorate 64(perviewBlock) 0 PerPrimitiveNV 45 MemberDecorate 64(perviewBlock) 0 PerViewNV 46 MemberDecorate 64(perviewBlock) 1 PerPrimitiveNV 47 MemberDecorate 64(perviewBlock) 1 PerViewNV 48 MemberDecorate 64(perviewBlock) 2 PerViewNV 49 MemberDecorate 64(perviewBlock) 3 PerViewNV 50 Decorate 64(perviewBlock) Block 51 Decorate 67(b2) Location 10 52 Decorate 89 BuiltIn WorkgroupSize 53 2: TypeVoid 54 3: TypeFunction 2 55 6: TypeInt 32 0 56 7: TypePointer Function 6(int) 57 9: TypeVector 6(int) 3 58 10: TypePointer Input 9(ivec3) 59 11(gl_LocalInvocationID): 10(ptr) Variable Input 60 12: 6(int) Constant 0 61 13: TypePointer Input 6(int) 62 17: 6(int) Constant 4 63 18: TypeArray 6(int) 17 64 19: TypePointer Input 18 65 20(gl_MeshViewIndicesNV): 19(ptr) Variable Input 66 21(gl_MeshViewCountNV): 13(ptr) Variable Input 67 26: TypeFloat 32 68 27: TypeVector 26(float) 4 69 28: 6(int) Constant 3 70 29: TypeArray 27(fvec4) 28 71 30: TypeArray 29 17 72 31(block): TypeStruct 30 29 30 27(fvec4) 73 32: 6(int) Constant 81 74 33: TypeArray 31(block) 32 75 34: TypePointer Output 33 76 35(b): 34(ptr) Variable Output 77 37: TypeInt 32 1 78 38: 37(int) Constant 0 79 40: 37(int) Constant 2 80 41: 26(float) Constant 1065353216 81 42: 27(fvec4) ConstantComposite 41 41 41 41 82 43: TypePointer Output 27(fvec4) 83 46: 37(int) Constant 1 84 47: 26(float) Constant 1073741824 85 48: 27(fvec4) ConstantComposite 47 47 47 47 86 52: 26(float) Constant 1077936128 87 53: 27(fvec4) ConstantComposite 52 52 52 52 88 56: 37(int) Constant 3 89 57: 26(float) Constant 1082130432 90 58: 27(fvec4) ConstantComposite 57 57 57 57 91 60: 6(int) Constant 1 92 61: 6(int) Constant 264 93 62: 6(int) Constant 2 94 63: TypeArray 27(fvec4) 17 95 64(perviewBlock): TypeStruct 63 30 30 63 96 65: TypeArray 64(perviewBlock) 32 97 66: TypePointer Output 65 98 67(b2): 66(ptr) Variable Output 99 70: 26(float) Constant 1084227584 100 71: 27(fvec4) ConstantComposite 70 70 70 70 101 75: 26(float) Constant 1086324736 102 76: 27(fvec4) ConstantComposite 75 75 75 75 103 80: 26(float) Constant 1088421888 104 81: 27(fvec4) ConstantComposite 80 80 80 80 105 85: 26(float) Constant 1090519040 106 86: 27(fvec4) ConstantComposite 85 85 85 85 107 88: 6(int) Constant 32 108 89: 9(ivec3) ConstantComposite 88 60 60 109 4(main): 2 Function None 3 110 5: Label 111 8(iid): 7(ptr) Variable Function 112 16(viewID): 7(ptr) Variable Function 113 14: 13(ptr) AccessChain 11(gl_LocalInvocationID) 12 114 15: 6(int) Load 14 115 Store 8(iid) 15 116 22: 6(int) Load 21(gl_MeshViewCountNV) 117 23: 6(int) UMod 22 17 118 24: 13(ptr) AccessChain 20(gl_MeshViewIndicesNV) 23 119 25: 6(int) Load 24 120 Store 16(viewID) 25 121 36: 6(int) Load 8(iid) 122 39: 6(int) Load 16(viewID) 123 44: 43(ptr) AccessChain 35(b) 36 38 39 40 124 Store 44 42 125 45: 6(int) Load 8(iid) 126 49: 43(ptr) AccessChain 35(b) 45 46 46 127 Store 49 48 128 50: 6(int) Load 8(iid) 129 51: 6(int) Load 16(viewID) 130 54: 43(ptr) AccessChain 35(b) 50 40 51 40 131 Store 54 53 132 55: 6(int) Load 8(iid) 133 59: 43(ptr) AccessChain 35(b) 55 56 134 Store 59 58 135 MemoryBarrier 60 61 136 ControlBarrier 62 62 61 137 68: 6(int) Load 8(iid) 138 69: 6(int) Load 16(viewID) 139 72: 43(ptr) AccessChain 67(b2) 68 38 69 140 Store 72 71 141 73: 6(int) Load 8(iid) 142 74: 6(int) Load 16(viewID) 143 77: 43(ptr) AccessChain 67(b2) 73 46 74 46 144 Store 77 76 145 78: 6(int) Load 8(iid) 146 79: 6(int) Load 16(viewID) 147 82: 43(ptr) AccessChain 67(b2) 78 40 79 40 148 Store 82 81 149 83: 6(int) Load 8(iid) 150 84: 6(int) Load 16(viewID) 151 87: 43(ptr) AccessChain 67(b2) 83 56 84 152 Store 87 86 153 MemoryBarrier 60 61 154 ControlBarrier 62 62 61 155 Return 156 FunctionEnd 157