Home | History | Annotate | Download | only in baseResults
      1 spv.meshShaderPerViewBuiltins.mesh
      2 // Module Version 10000
      3 // Generated by (magic number): 80007
      4 // Id's are bound by 126
      5 
      6                               Capability MultiViewport
      7                               Capability PerViewAttributesNV
      8                               Capability MeshShadingNV
      9                               Extension  "SPV_NVX_multiview_per_view_attributes"
     10                               Extension  "SPV_NV_mesh_shader"
     11                1:             ExtInstImport  "GLSL.std.450"
     12                               MemoryModel Logical GLSL450
     13                               EntryPoint MeshNV 4  "main" 11 20 21 40 72
     14                               ExecutionMode 4 LocalSize 32 1 1
     15                               ExecutionMode 4 OutputVertices 81
     16                               ExecutionMode 4 OutputPrimitivesNV 32
     17                               ExecutionMode 4 OutputTrianglesNV
     18                               Source GLSL 450
     19                               SourceExtension  "GL_NV_mesh_shader"
     20                               Name 4  "main"
     21                               Name 8  "iid"
     22                               Name 11  "gl_LocalInvocationID"
     23                               Name 16  "viewID"
     24                               Name 20  "gl_MeshViewIndicesNV"
     25                               Name 21  "gl_MeshViewCountNV"
     26                               Name 36  "gl_MeshPerVertexNV"
     27                               MemberName 36(gl_MeshPerVertexNV) 0  "gl_Position"
     28                               MemberName 36(gl_MeshPerVertexNV) 1  "gl_PointSize"
     29                               MemberName 36(gl_MeshPerVertexNV) 2  "gl_ClipDistance"
     30                               MemberName 36(gl_MeshPerVertexNV) 3  "gl_CullDistance"
     31                               MemberName 36(gl_MeshPerVertexNV) 4  "gl_PositionPerViewNV"
     32                               MemberName 36(gl_MeshPerVertexNV) 5  "gl_ClipDistancePerViewNV"
     33                               MemberName 36(gl_MeshPerVertexNV) 6  "gl_CullDistancePerViewNV"
     34                               Name 40  "gl_MeshVerticesNV"
     35                               Name 68  "gl_MeshPerPrimitiveNV"
     36                               MemberName 68(gl_MeshPerPrimitiveNV) 0  "gl_PrimitiveID"
     37                               MemberName 68(gl_MeshPerPrimitiveNV) 1  "gl_Layer"
     38                               MemberName 68(gl_MeshPerPrimitiveNV) 2  "gl_ViewportIndex"
     39                               MemberName 68(gl_MeshPerPrimitiveNV) 3  "gl_ViewportMask"
     40                               MemberName 68(gl_MeshPerPrimitiveNV) 4  "gl_LayerPerViewNV"
     41                               MemberName 68(gl_MeshPerPrimitiveNV) 5  "gl_ViewportMaskPerViewNV"
     42                               Name 72  "gl_MeshPrimitivesNV"
     43                               Decorate 11(gl_LocalInvocationID) BuiltIn LocalInvocationId
     44                               Decorate 20(gl_MeshViewIndicesNV) BuiltIn MeshViewIndicesNV
     45                               Decorate 21(gl_MeshViewCountNV) BuiltIn MeshViewCountNV
     46                               MemberDecorate 36(gl_MeshPerVertexNV) 0 BuiltIn Position
     47                               MemberDecorate 36(gl_MeshPerVertexNV) 1 BuiltIn PointSize
     48                               MemberDecorate 36(gl_MeshPerVertexNV) 2 BuiltIn ClipDistance
     49                               MemberDecorate 36(gl_MeshPerVertexNV) 3 BuiltIn CullDistance
     50                               MemberDecorate 36(gl_MeshPerVertexNV) 4 PerViewNV
     51                               MemberDecorate 36(gl_MeshPerVertexNV) 4 BuiltIn PositionPerViewNV
     52                               MemberDecorate 36(gl_MeshPerVertexNV) 5 PerViewNV
     53                               MemberDecorate 36(gl_MeshPerVertexNV) 5 BuiltIn ClipDistancePerViewNV
     54                               MemberDecorate 36(gl_MeshPerVertexNV) 6 PerViewNV
     55                               MemberDecorate 36(gl_MeshPerVertexNV) 6 BuiltIn CullDistancePerViewNV
     56                               Decorate 36(gl_MeshPerVertexNV) Block
     57                               MemberDecorate 68(gl_MeshPerPrimitiveNV) 0 PerPrimitiveNV
     58                               MemberDecorate 68(gl_MeshPerPrimitiveNV) 0 BuiltIn PrimitiveId
     59                               MemberDecorate 68(gl_MeshPerPrimitiveNV) 1 PerPrimitiveNV
     60                               MemberDecorate 68(gl_MeshPerPrimitiveNV) 1 BuiltIn Layer
     61                               MemberDecorate 68(gl_MeshPerPrimitiveNV) 2 PerPrimitiveNV
     62                               MemberDecorate 68(gl_MeshPerPrimitiveNV) 2 BuiltIn ViewportIndex
     63                               MemberDecorate 68(gl_MeshPerPrimitiveNV) 3 PerPrimitiveNV
     64                               MemberDecorate 68(gl_MeshPerPrimitiveNV) 3 BuiltIn ViewportMaskNV
     65                               MemberDecorate 68(gl_MeshPerPrimitiveNV) 4 PerPrimitiveNV
     66                               MemberDecorate 68(gl_MeshPerPrimitiveNV) 4 PerViewNV
     67                               MemberDecorate 68(gl_MeshPerPrimitiveNV) 4 BuiltIn LayerPerViewNV
     68                               MemberDecorate 68(gl_MeshPerPrimitiveNV) 5 PerPrimitiveNV
     69                               MemberDecorate 68(gl_MeshPerPrimitiveNV) 5 PerViewNV
     70                               MemberDecorate 68(gl_MeshPerPrimitiveNV) 5 BuiltIn ViewportMaskPerViewNV
     71                               Decorate 68(gl_MeshPerPrimitiveNV) Block
     72                               Decorate 125 BuiltIn WorkgroupSize
     73                2:             TypeVoid
     74                3:             TypeFunction 2
     75                6:             TypeInt 32 0
     76                7:             TypePointer Function 6(int)
     77                9:             TypeVector 6(int) 3
     78               10:             TypePointer Input 9(ivec3)
     79 11(gl_LocalInvocationID):     10(ptr) Variable Input
     80               12:      6(int) Constant 0
     81               13:             TypePointer Input 6(int)
     82               17:      6(int) Constant 4
     83               18:             TypeArray 6(int) 17
     84               19:             TypePointer Input 18
     85 20(gl_MeshViewIndicesNV):     19(ptr) Variable Input
     86 21(gl_MeshViewCountNV):     13(ptr) Variable Input
     87               26:             TypeFloat 32
     88               27:             TypeVector 26(float) 4
     89               28:      6(int) Constant 1
     90               29:             TypeArray 26(float) 28
     91               30:             TypeArray 27(fvec4) 17
     92               31:      6(int) Constant 3
     93               32:             TypeArray 26(float) 31
     94               33:             TypeArray 32 17
     95               34:             TypeArray 26(float) 17
     96               35:             TypeArray 34 17
     97 36(gl_MeshPerVertexNV):             TypeStruct 27(fvec4) 26(float) 29 29 30 33 35
     98               37:      6(int) Constant 81
     99               38:             TypeArray 36(gl_MeshPerVertexNV) 37
    100               39:             TypePointer Output 38
    101 40(gl_MeshVerticesNV):     39(ptr) Variable Output
    102               42:             TypeInt 32 1
    103               43:     42(int) Constant 4
    104               45:   26(float) Constant 1065353216
    105               46:   26(float) Constant 1073741824
    106               47:   26(float) Constant 1077936128
    107               48:   26(float) Constant 1082130432
    108               49:   27(fvec4) ConstantComposite 45 46 47 48
    109               50:             TypePointer Output 27(fvec4)
    110               53:     42(int) Constant 5
    111               55:     42(int) Constant 2
    112               56:   26(float) Constant 1084227584
    113               57:             TypePointer Output 26(float)
    114               60:     42(int) Constant 6
    115               62:     42(int) Constant 3
    116               63:   26(float) Constant 1086324736
    117               65:             TypeArray 42(int) 28
    118               66:             TypeArray 42(int) 17
    119               67:             TypeArray 65 17
    120 68(gl_MeshPerPrimitiveNV):             TypeStruct 42(int) 42(int) 42(int) 65 66 67
    121               69:      6(int) Constant 32
    122               70:             TypeArray 68(gl_MeshPerPrimitiveNV) 69
    123               71:             TypePointer Output 70
    124 72(gl_MeshPrimitivesNV):     71(ptr) Variable Output
    125               75:     42(int) Constant 7
    126               76:             TypePointer Output 42(int)
    127               80:     42(int) Constant 0
    128               81:     42(int) Constant 8
    129               83:      6(int) Constant 264
    130               84:      6(int) Constant 2
    131              125:    9(ivec3) ConstantComposite 69 28 28
    132          4(main):           2 Function None 3
    133                5:             Label
    134           8(iid):      7(ptr) Variable Function
    135       16(viewID):      7(ptr) Variable Function
    136               14:     13(ptr) AccessChain 11(gl_LocalInvocationID) 12
    137               15:      6(int) Load 14
    138                               Store 8(iid) 15
    139               22:      6(int) Load 21(gl_MeshViewCountNV)
    140               23:      6(int) UMod 22 17
    141               24:     13(ptr) AccessChain 20(gl_MeshViewIndicesNV) 23
    142               25:      6(int) Load 24
    143                               Store 16(viewID) 25
    144               41:      6(int) Load 8(iid)
    145               44:      6(int) Load 16(viewID)
    146               51:     50(ptr) AccessChain 40(gl_MeshVerticesNV) 41 43 44
    147                               Store 51 49
    148               52:      6(int) Load 8(iid)
    149               54:      6(int) Load 16(viewID)
    150               58:     57(ptr) AccessChain 40(gl_MeshVerticesNV) 52 53 54 55
    151                               Store 58 56
    152               59:      6(int) Load 8(iid)
    153               61:      6(int) Load 16(viewID)
    154               64:     57(ptr) AccessChain 40(gl_MeshVerticesNV) 59 60 61 62
    155                               Store 64 63
    156               73:      6(int) Load 8(iid)
    157               74:      6(int) Load 16(viewID)
    158               77:     76(ptr) AccessChain 72(gl_MeshPrimitivesNV) 73 43 74
    159                               Store 77 75
    160               78:      6(int) Load 8(iid)
    161               79:      6(int) Load 16(viewID)
    162               82:     76(ptr) AccessChain 72(gl_MeshPrimitivesNV) 78 53 79 80
    163                               Store 82 81
    164                               MemoryBarrier 28 83
    165                               ControlBarrier 84 84 83
    166               85:      6(int) Load 8(iid)
    167               86:      6(int) IAdd 85 28
    168               87:      6(int) Load 16(viewID)
    169               88:      6(int) Load 8(iid)
    170               89:      6(int) Load 16(viewID)
    171               90:     50(ptr) AccessChain 40(gl_MeshVerticesNV) 88 43 89
    172               91:   27(fvec4) Load 90
    173               92:     50(ptr) AccessChain 40(gl_MeshVerticesNV) 86 43 87
    174                               Store 92 91
    175               93:      6(int) Load 8(iid)
    176               94:      6(int) IAdd 93 28
    177               95:      6(int) Load 16(viewID)
    178               96:      6(int) Load 8(iid)
    179               97:      6(int) Load 16(viewID)
    180               98:     57(ptr) AccessChain 40(gl_MeshVerticesNV) 96 53 97 55
    181               99:   26(float) Load 98
    182              100:     57(ptr) AccessChain 40(gl_MeshVerticesNV) 94 53 95 55
    183                               Store 100 99
    184              101:      6(int) Load 8(iid)
    185              102:      6(int) IAdd 101 28
    186              103:      6(int) Load 16(viewID)
    187              104:      6(int) Load 8(iid)
    188              105:      6(int) Load 16(viewID)
    189              106:     57(ptr) AccessChain 40(gl_MeshVerticesNV) 104 60 105 62
    190              107:   26(float) Load 106
    191              108:     57(ptr) AccessChain 40(gl_MeshVerticesNV) 102 60 103 62
    192                               Store 108 107
    193              109:      6(int) Load 8(iid)
    194              110:      6(int) IAdd 109 28
    195              111:      6(int) Load 16(viewID)
    196              112:      6(int) Load 8(iid)
    197              113:      6(int) Load 16(viewID)
    198              114:     76(ptr) AccessChain 72(gl_MeshPrimitivesNV) 112 43 113
    199              115:     42(int) Load 114
    200              116:     76(ptr) AccessChain 72(gl_MeshPrimitivesNV) 110 43 111
    201                               Store 116 115
    202              117:      6(int) Load 8(iid)
    203              118:      6(int) IAdd 117 28
    204              119:      6(int) Load 16(viewID)
    205              120:      6(int) Load 8(iid)
    206              121:      6(int) Load 16(viewID)
    207              122:     76(ptr) AccessChain 72(gl_MeshPrimitivesNV) 120 53 121 80
    208              123:     42(int) Load 122
    209              124:     76(ptr) AccessChain 72(gl_MeshPrimitivesNV) 118 53 119 80
    210                               Store 124 123
    211                               MemoryBarrier 28 83
    212                               ControlBarrier 84 84 83
    213                               Return
    214                               FunctionEnd
    215