yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
dffbc797
main
1spv.ext.meshShaderBuiltinsShadingRate.mesh 2// Module Version 10400 3// Generated by (magic number): 8000b 4// Id's are bound by 110 5 6 Capability ClipDistance 7 Capability CullDistance 8 Capability FragmentShadingRateKHR 9 Capability DrawParameters 10 Capability MultiView 11 Capability MeshShadingEXT 12 Extension "SPV_EXT_mesh_shader" 13 Extension "SPV_KHR_fragment_shading_rate" 14 1: ExtInstImport "GLSL.std.450" 15 MemoryModel Logical GLSL450 16 EntryPoint MeshEXT 4 "main" 13 19 24 41 69 89 104 107 17 ExecutionMode 4 LocalSize 32 1 1 18 ExecutionMode 4 OutputVertices 81 19 ExecutionMode 4 OutputPrimitivesNV 32 20 ExecutionMode 4 OutputTrianglesNV 21 Source GLSL 460 22 SourceExtension "GL_ARB_shader_draw_parameters" 23 SourceExtension "GL_EXT_fragment_shading_rate" 24 SourceExtension "GL_EXT_mesh_shader" 25 SourceExtension "GL_EXT_multiview" 26 Name 4 "main" 27 Name 6 "testAdditionalBuiltins(" 28 Name 10 "iid" 29 Name 13 "gl_LocalInvocationID" 30 Name 18 "gid" 31 Name 19 "gl_WorkGroupID" 32 Name 23 "numWorkGrous" 33 Name 24 "gl_NumWorkGroups" 34 Name 26 "vertexCount" 35 Name 28 "primitiveCount" 36 Name 38 "gl_MeshPerVertexEXT" 37 MemberName 38(gl_MeshPerVertexEXT) 0 "gl_Position" 38 MemberName 38(gl_MeshPerVertexEXT) 1 "gl_PointSize" 39 MemberName 38(gl_MeshPerVertexEXT) 2 "gl_ClipDistance" 40 MemberName 38(gl_MeshPerVertexEXT) 3 "gl_CullDistance" 41 Name 41 "gl_MeshVerticesEXT" 42 Name 66 "gl_MeshPerPrimitiveEXT" 43 MemberName 66(gl_MeshPerPrimitiveEXT) 0 "gl_PrimitiveID" 44 MemberName 66(gl_MeshPerPrimitiveEXT) 1 "gl_Layer" 45 MemberName 66(gl_MeshPerPrimitiveEXT) 2 "gl_ViewportIndex" 46 MemberName 66(gl_MeshPerPrimitiveEXT) 3 "gl_CullPrimitiveEXT" 47 MemberName 66(gl_MeshPerPrimitiveEXT) 4 "gl_PrimitiveShadingRateEXT" 48 Name 69 "gl_MeshPrimitivesEXT" 49 Name 89 "gl_PrimitiveTriangleIndicesEXT" 50 Name 102 "id" 51 Name 104 "gl_DrawIDARB" 52 Name 106 "viewIdx" 53 Name 107 "gl_ViewIndex" 54 Decorate 13(gl_LocalInvocationID) BuiltIn LocalInvocationId 55 Decorate 19(gl_WorkGroupID) BuiltIn WorkgroupId 56 Decorate 24(gl_NumWorkGroups) BuiltIn NumWorkgroups 57 Decorate 38(gl_MeshPerVertexEXT) Block 58 MemberDecorate 38(gl_MeshPerVertexEXT) 0 BuiltIn Position 59 MemberDecorate 38(gl_MeshPerVertexEXT) 1 BuiltIn PointSize 60 MemberDecorate 38(gl_MeshPerVertexEXT) 2 BuiltIn ClipDistance 61 MemberDecorate 38(gl_MeshPerVertexEXT) 3 BuiltIn CullDistance 62 Decorate 66(gl_MeshPerPrimitiveEXT) Block 63 MemberDecorate 66(gl_MeshPerPrimitiveEXT) 0 BuiltIn PrimitiveId 64 MemberDecorate 66(gl_MeshPerPrimitiveEXT) 0 PerPrimitiveNV 65 MemberDecorate 66(gl_MeshPerPrimitiveEXT) 1 BuiltIn Layer 66 MemberDecorate 66(gl_MeshPerPrimitiveEXT) 1 PerPrimitiveNV 67 MemberDecorate 66(gl_MeshPerPrimitiveEXT) 2 BuiltIn ViewportIndex 68 MemberDecorate 66(gl_MeshPerPrimitiveEXT) 2 PerPrimitiveNV 69 MemberDecorate 66(gl_MeshPerPrimitiveEXT) 3 BuiltIn CullPrimitiveEXT 70 MemberDecorate 66(gl_MeshPerPrimitiveEXT) 3 PerPrimitiveNV 71 MemberDecorate 66(gl_MeshPerPrimitiveEXT) 4 BuiltIn PrimitiveShadingRateKHR 72 MemberDecorate 66(gl_MeshPerPrimitiveEXT) 4 PerPrimitiveNV 73 Decorate 89(gl_PrimitiveTriangleIndicesEXT) BuiltIn PrimitiveTriangleIndicesEXT 74 Decorate 104(gl_DrawIDARB) BuiltIn DrawIndex 75 Decorate 107(gl_ViewIndex) BuiltIn ViewIndex 76 Decorate 109 BuiltIn WorkgroupSize 77 2: TypeVoid 78 3: TypeFunction 2 79 8: TypeInt 32 0 80 9: TypePointer Function 8(int) 81 11: TypeVector 8(int) 3 82 12: TypePointer Input 11(ivec3) 8313(gl_LocalInvocationID): 12(ptr) Variable Input 84 14: 8(int) Constant 0 85 15: TypePointer Input 8(int) 8619(gl_WorkGroupID): 12(ptr) Variable Input 87 22: TypePointer Function 11(ivec3) 8824(gl_NumWorkGroups): 12(ptr) Variable Input 89 27: 8(int) Constant 81 90 29: 8(int) Constant 32 91 32: TypeFloat 32 92 33: TypeVector 32(float) 4 93 34: 8(int) Constant 4 94 35: TypeArray 32(float) 34 95 36: 8(int) Constant 3 96 37: TypeArray 32(float) 36 9738(gl_MeshPerVertexEXT): TypeStruct 33(fvec4) 32(float) 35 37 98 39: TypeArray 38(gl_MeshPerVertexEXT) 27 99 40: TypePointer Output 39 10041(gl_MeshVerticesEXT): 40(ptr) Variable Output 101 43: TypeInt 32 1 102 44: 43(int) Constant 0 103 45: 32(float) Constant 1065353216 104 46: 33(fvec4) ConstantComposite 45 45 45 45 105 47: TypePointer Output 33(fvec4) 106 50: 43(int) Constant 1 107 51: 32(float) Constant 1073741824 108 52: TypePointer Output 32(float) 109 55: 43(int) Constant 2 110 56: 43(int) Constant 3 111 57: 32(float) Constant 1077936128 112 60: 32(float) Constant 1082130432 113 62: 8(int) Constant 1 114 63: 8(int) Constant 264 115 64: 8(int) Constant 2 116 65: TypeBool 11766(gl_MeshPerPrimitiveEXT): TypeStruct 43(int) 43(int) 43(int) 65(bool) 43(int) 118 67: TypeArray 66(gl_MeshPerPrimitiveEXT) 29 119 68: TypePointer Output 67 12069(gl_MeshPrimitivesEXT): 68(ptr) Variable Output 121 71: 43(int) Constant 6 122 72: TypePointer Output 43(int) 123 75: 43(int) Constant 7 124 78: 43(int) Constant 8 125 81: 65(bool) ConstantFalse 126 82: TypePointer Output 65(bool) 127 85: 43(int) Constant 4 128 87: TypeArray 11(ivec3) 29 129 88: TypePointer Output 87 13089(gl_PrimitiveTriangleIndicesEXT): 88(ptr) Variable Output 131 90: 8(int) Constant 257 132 91: 11(ivec3) ConstantComposite 90 90 90 133 92: TypePointer Output 11(ivec3) 134 96: 11(ivec3) ConstantComposite 64 64 64 135 99: 11(ivec3) ConstantComposite 14 14 14 136 101: TypePointer Function 43(int) 137 103: TypePointer Input 43(int) 138104(gl_DrawIDARB): 103(ptr) Variable Input 139107(gl_ViewIndex): 103(ptr) Variable Input 140 109: 11(ivec3) ConstantComposite 29 62 62 141 4(main): 2 Function None 3 142 5: Label 143 10(iid): 9(ptr) Variable Function 144 18(gid): 9(ptr) Variable Function 14523(numWorkGrous): 22(ptr) Variable Function 146 26(vertexCount): 9(ptr) Variable Function 14728(primitiveCount): 9(ptr) Variable Function 148 16: 15(ptr) AccessChain 13(gl_LocalInvocationID) 14 149 17: 8(int) Load 16 150 Store 10(iid) 17 151 20: 15(ptr) AccessChain 19(gl_WorkGroupID) 14 152 21: 8(int) Load 20 153 Store 18(gid) 21 154 25: 11(ivec3) Load 24(gl_NumWorkGroups) 155 Store 23(numWorkGrous) 25 156 Store 26(vertexCount) 27 157 Store 28(primitiveCount) 29 158 30: 8(int) Load 26(vertexCount) 159 31: 8(int) Load 28(primitiveCount) 160 SetMeshOutputsEXT 30 31 161 42: 8(int) Load 10(iid) 162 48: 47(ptr) AccessChain 41(gl_MeshVerticesEXT) 42 44 163 Store 48 46 164 49: 8(int) Load 10(iid) 165 53: 52(ptr) AccessChain 41(gl_MeshVerticesEXT) 49 50 166 Store 53 51 167 54: 8(int) Load 10(iid) 168 58: 52(ptr) AccessChain 41(gl_MeshVerticesEXT) 54 55 56 169 Store 58 57 170 59: 8(int) Load 10(iid) 171 61: 52(ptr) AccessChain 41(gl_MeshVerticesEXT) 59 56 55 172 Store 61 60 173 MemoryBarrier 62 63 174 ControlBarrier 64 64 63 175 70: 8(int) Load 10(iid) 176 73: 72(ptr) AccessChain 69(gl_MeshPrimitivesEXT) 70 44 177 Store 73 71 178 74: 8(int) Load 10(iid) 179 76: 72(ptr) AccessChain 69(gl_MeshPrimitivesEXT) 74 50 180 Store 76 75 181 77: 8(int) Load 10(iid) 182 79: 72(ptr) AccessChain 69(gl_MeshPrimitivesEXT) 77 55 183 Store 79 78 184 80: 8(int) Load 10(iid) 185 83: 82(ptr) AccessChain 69(gl_MeshPrimitivesEXT) 80 56 186 Store 83 81 187 84: 8(int) Load 10(iid) 188 86: 72(ptr) AccessChain 69(gl_MeshPrimitivesEXT) 84 85 189 Store 86 44 190 MemoryBarrier 62 63 191 ControlBarrier 64 64 63 192 93: 92(ptr) AccessChain 89(gl_PrimitiveTriangleIndicesEXT) 44 193 Store 93 91 194 94: 8(int) Load 28(primitiveCount) 195 95: 8(int) ISub 94 62 196 97: 92(ptr) AccessChain 89(gl_PrimitiveTriangleIndicesEXT) 95 197 Store 97 96 198 98: 8(int) Load 18(gid) 199 100: 92(ptr) AccessChain 89(gl_PrimitiveTriangleIndicesEXT) 98 200 Store 100 99 201 MemoryBarrier 62 63 202 ControlBarrier 64 64 63 203 Return 204 FunctionEnd 2056(testAdditionalBuiltins(): 2 Function None 3 206 7: Label 207 102(id): 101(ptr) Variable Function 208 106(viewIdx): 101(ptr) Variable Function 209 105: 43(int) Load 104(gl_DrawIDARB) 210 Store 102(id) 105 211 108: 43(int) Load 107(gl_ViewIndex) 212 Store 106(viewIdx) 108 213 Return 214 FunctionEnd