Home | History | Annotate | Download | only in jni
      1 #include <stdint.h>
      2 
      3 #if 0
      4 /usr/local/google/home/olv/khronos/VulkanSamples/Demos/Hologram/Hologram.vert
      5 Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.
      6 
      7 
      8 Linked vertex stage:
      9 
     10 
     11 // Module Version 10000
     12 // Generated by (magic number): 80001
     13 // Id's are bound by 108
     14 
     15                               Capability Shader
     16                1:             ExtInstImport  "GLSL.std.450"
     17                               MemoryModel Logical GLSL450
     18                               EntryPoint Vertex 4  "main" 38 67 89 102
     19                               Source ESSL 310
     20                               Name 4  "main"
     21                               Name 9  "world_light"
     22                               Name 12  "param_block"
     23                               MemberName 12(param_block) 0  "light_pos"
     24                               MemberName 12(param_block) 1  "light_color"
     25                               MemberName 12(param_block) 2  "model"
     26                               MemberName 12(param_block) 3  "view_projection"
     27                               Name 14  "params"
     28                               Name 34  "world_pos"
     29                               Name 38  "in_pos"
     30                               Name 49  "world_normal"
     31                               Name 67  "in_normal"
     32                               Name 70  "light_dir"
     33                               Name 75  "brightness"
     34                               Name 87  "gl_PerVertex"
     35                               MemberName 87(gl_PerVertex) 0  "gl_Position"
     36                               MemberName 87(gl_PerVertex) 1  "gl_PointSize"
     37                               Name 89  ""
     38                               Name 102  "color"
     39                               MemberDecorate 12(param_block) 0 Offset 0
     40                               MemberDecorate 12(param_block) 1 Offset 16
     41                               MemberDecorate 12(param_block) 2 ColMajor
     42                               MemberDecorate 12(param_block) 2 Offset 32
     43                               MemberDecorate 12(param_block) 2 MatrixStride 16
     44                               MemberDecorate 12(param_block) 3 ColMajor
     45                               MemberDecorate 12(param_block) 3 Offset 96
     46                               MemberDecorate 12(param_block) 3 MatrixStride 16
     47                               Decorate 12(param_block) BufferBlock
     48                               Decorate 14(params) DescriptorSet 0
     49                               Decorate 14(params) Binding 0
     50                               Decorate 38(in_pos) Location 0
     51                               Decorate 67(in_normal) Location 1
     52                               MemberDecorate 87(gl_PerVertex) 0 BuiltIn Position
     53                               MemberDecorate 87(gl_PerVertex) 1 BuiltIn PointSize
     54                               Decorate 87(gl_PerVertex) Block
     55                2:             TypeVoid
     56                3:             TypeFunction 2
     57                6:             TypeFloat 32
     58                7:             TypeVector 6(float) 3
     59                8:             TypePointer Function 7(fvec3)
     60               10:             TypeVector 6(float) 4
     61               11:             TypeMatrix 10(fvec4) 4
     62  12(param_block):             TypeStruct 7(fvec3) 7(fvec3) 11 11
     63               13:             TypePointer Uniform 12(param_block)
     64       14(params):     13(ptr) Variable Uniform
     65               15:             TypeInt 32 1
     66               16:     15(int) Constant 2
     67               17:             TypePointer Uniform 11
     68               20:     15(int) Constant 0
     69               21:             TypePointer Uniform 7(fvec3)
     70               24:    6(float) Constant 1065353216
     71               37:             TypePointer Input 7(fvec3)
     72       38(in_pos):     37(ptr) Variable Input
     73               52:             TypeMatrix 7(fvec3) 3
     74               53:    6(float) Constant 0
     75    67(in_normal):     37(ptr) Variable Input
     76               74:             TypePointer Function 6(float)
     77 87(gl_PerVertex):             TypeStruct 10(fvec4) 6(float)
     78               88:             TypePointer Output 87(gl_PerVertex)
     79               89:     88(ptr) Variable Output
     80               90:     15(int) Constant 3
     81               99:             TypePointer Output 10(fvec4)
     82              101:             TypePointer Output 7(fvec3)
     83       102(color):    101(ptr) Variable Output
     84              103:     15(int) Constant 1
     85          4(main):           2 Function None 3
     86                5:             Label
     87   9(world_light):      8(ptr) Variable Function
     88    34(world_pos):      8(ptr) Variable Function
     89 49(world_normal):      8(ptr) Variable Function
     90    70(light_dir):      8(ptr) Variable Function
     91   75(brightness):     74(ptr) Variable Function
     92               18:     17(ptr) AccessChain 14(params) 16
     93               19:          11 Load 18
     94               22:     21(ptr) AccessChain 14(params) 20
     95               23:    7(fvec3) Load 22
     96               25:    6(float) CompositeExtract 23 0
     97               26:    6(float) CompositeExtract 23 1
     98               27:    6(float) CompositeExtract 23 2
     99               28:   10(fvec4) CompositeConstruct 25 26 27 24
    100               29:   10(fvec4) MatrixTimesVector 19 28
    101               30:    6(float) CompositeExtract 29 0
    102               31:    6(float) CompositeExtract 29 1
    103               32:    6(float) CompositeExtract 29 2
    104               33:    7(fvec3) CompositeConstruct 30 31 32
    105                               Store 9(world_light) 33
    106               35:     17(ptr) AccessChain 14(params) 16
    107               36:          11 Load 35
    108               39:    7(fvec3) Load 38(in_pos)
    109               40:    6(float) CompositeExtract 39 0
    110               41:    6(float) CompositeExtract 39 1
    111               42:    6(float) CompositeExtract 39 2
    112               43:   10(fvec4) CompositeConstruct 40 41 42 24
    113               44:   10(fvec4) MatrixTimesVector 36 43
    114               45:    6(float) CompositeExtract 44 0
    115               46:    6(float) CompositeExtract 44 1
    116               47:    6(float) CompositeExtract 44 2
    117               48:    7(fvec3) CompositeConstruct 45 46 47
    118                               Store 34(world_pos) 48
    119               50:     17(ptr) AccessChain 14(params) 16
    120               51:          11 Load 50
    121               54:    6(float) CompositeExtract 51 0 0
    122               55:    6(float) CompositeExtract 51 0 1
    123               56:    6(float) CompositeExtract 51 0 2
    124               57:    6(float) CompositeExtract 51 1 0
    125               58:    6(float) CompositeExtract 51 1 1
    126               59:    6(float) CompositeExtract 51 1 2
    127               60:    6(float) CompositeExtract 51 2 0
    128               61:    6(float) CompositeExtract 51 2 1
    129               62:    6(float) CompositeExtract 51 2 2
    130               63:    7(fvec3) CompositeConstruct 54 55 56
    131               64:    7(fvec3) CompositeConstruct 57 58 59
    132               65:    7(fvec3) CompositeConstruct 60 61 62
    133               66:          52 CompositeConstruct 63 64 65
    134               68:    7(fvec3) Load 67(in_normal)
    135               69:    7(fvec3) MatrixTimesVector 66 68
    136                               Store 49(world_normal) 69
    137               71:    7(fvec3) Load 9(world_light)
    138               72:    7(fvec3) Load 34(world_pos)
    139               73:    7(fvec3) FSub 71 72
    140                               Store 70(light_dir) 73
    141               76:    7(fvec3) Load 70(light_dir)
    142               77:    7(fvec3) Load 49(world_normal)
    143               78:    6(float) Dot 76 77
    144               79:    7(fvec3) Load 70(light_dir)
    145               80:    6(float) ExtInst 1(GLSL.std.450) 66(Length) 79
    146               81:    6(float) FDiv 78 80
    147               82:    7(fvec3) Load 49(world_normal)
    148               83:    6(float) ExtInst 1(GLSL.std.450) 66(Length) 82
    149               84:    6(float) FDiv 81 83
    150                               Store 75(brightness) 84
    151               85:    6(float) Load 75(brightness)
    152               86:    6(float) ExtInst 1(GLSL.std.450) 4(FAbs) 85
    153                               Store 75(brightness) 86
    154               91:     17(ptr) AccessChain 14(params) 90
    155               92:          11 Load 91
    156               93:    7(fvec3) Load 34(world_pos)
    157               94:    6(float) CompositeExtract 93 0
    158               95:    6(float) CompositeExtract 93 1
    159               96:    6(float) CompositeExtract 93 2
    160               97:   10(fvec4) CompositeConstruct 94 95 96 24
    161               98:   10(fvec4) MatrixTimesVector 92 97
    162              100:     99(ptr) AccessChain 89 20
    163                               Store 100 98
    164              104:     21(ptr) AccessChain 14(params) 103
    165              105:    7(fvec3) Load 104
    166              106:    6(float) Load 75(brightness)
    167              107:    7(fvec3) VectorTimesScalar 105 106
    168                               Store 102(color) 107
    169                               Return
    170                               FunctionEnd
    171 #endif
    172 
    173 static const uint32_t Smoke_vert[719] = {
    174     0x07230203, 0x00010000, 0x00080001, 0x0000006c,
    175     0x00000000, 0x00020011, 0x00000001, 0x0006000b,
    176     0x00000001, 0x4c534c47, 0x6474732e, 0x3035342e,
    177     0x00000000, 0x0003000e, 0x00000000, 0x00000001,
    178     0x0009000f, 0x00000000, 0x00000004, 0x6e69616d,
    179     0x00000000, 0x00000026, 0x00000043, 0x00000059,
    180     0x00000066, 0x00030003, 0x00000001, 0x00000136,
    181     0x00040005, 0x00000004, 0x6e69616d, 0x00000000,
    182     0x00050005, 0x00000009, 0x6c726f77, 0x696c5f64,
    183     0x00746867, 0x00050005, 0x0000000c, 0x61726170,
    184     0x6c625f6d, 0x006b636f, 0x00060006, 0x0000000c,
    185     0x00000000, 0x6867696c, 0x6f705f74, 0x00000073,
    186     0x00060006, 0x0000000c, 0x00000001, 0x6867696c,
    187     0x6f635f74, 0x00726f6c, 0x00050006, 0x0000000c,
    188     0x00000002, 0x65646f6d, 0x0000006c, 0x00070006,
    189     0x0000000c, 0x00000003, 0x77656976, 0x6f72705f,
    190     0x7463656a, 0x006e6f69, 0x00040005, 0x0000000e,
    191     0x61726170, 0x0000736d, 0x00050005, 0x00000022,
    192     0x6c726f77, 0x6f705f64, 0x00000073, 0x00040005,
    193     0x00000026, 0x705f6e69, 0x0000736f, 0x00060005,
    194     0x00000031, 0x6c726f77, 0x6f6e5f64, 0x6c616d72,
    195     0x00000000, 0x00050005, 0x00000043, 0x6e5f6e69,
    196     0x616d726f, 0x0000006c, 0x00050005, 0x00000046,
    197     0x6867696c, 0x69645f74, 0x00000072, 0x00050005,
    198     0x0000004b, 0x67697262, 0x656e7468, 0x00007373,
    199     0x00060005, 0x00000057, 0x505f6c67, 0x65567265,
    200     0x78657472, 0x00000000, 0x00060006, 0x00000057,
    201     0x00000000, 0x505f6c67, 0x7469736f, 0x006e6f69,
    202     0x00070006, 0x00000057, 0x00000001, 0x505f6c67,
    203     0x746e696f, 0x657a6953, 0x00000000, 0x00030005,
    204     0x00000059, 0x00000000, 0x00040005, 0x00000066,
    205     0x6f6c6f63, 0x00000072, 0x00050048, 0x0000000c,
    206     0x00000000, 0x00000023, 0x00000000, 0x00050048,
    207     0x0000000c, 0x00000001, 0x00000023, 0x00000010,
    208     0x00040048, 0x0000000c, 0x00000002, 0x00000005,
    209     0x00050048, 0x0000000c, 0x00000002, 0x00000023,
    210     0x00000020, 0x00050048, 0x0000000c, 0x00000002,
    211     0x00000007, 0x00000010, 0x00040048, 0x0000000c,
    212     0x00000003, 0x00000005, 0x00050048, 0x0000000c,
    213     0x00000003, 0x00000023, 0x00000060, 0x00050048,
    214     0x0000000c, 0x00000003, 0x00000007, 0x00000010,
    215     0x00030047, 0x0000000c, 0x00000003, 0x00040047,
    216     0x0000000e, 0x00000022, 0x00000000, 0x00040047,
    217     0x0000000e, 0x00000021, 0x00000000, 0x00040047,
    218     0x00000026, 0x0000001e, 0x00000000, 0x00040047,
    219     0x00000043, 0x0000001e, 0x00000001, 0x00050048,
    220     0x00000057, 0x00000000, 0x0000000b, 0x00000000,
    221     0x00050048, 0x00000057, 0x00000001, 0x0000000b,
    222     0x00000001, 0x00030047, 0x00000057, 0x00000002,
    223     0x00020013, 0x00000002, 0x00030021, 0x00000003,
    224     0x00000002, 0x00030016, 0x00000006, 0x00000020,
    225     0x00040017, 0x00000007, 0x00000006, 0x00000003,
    226     0x00040020, 0x00000008, 0x00000007, 0x00000007,
    227     0x00040017, 0x0000000a, 0x00000006, 0x00000004,
    228     0x00040018, 0x0000000b, 0x0000000a, 0x00000004,
    229     0x0006001e, 0x0000000c, 0x00000007, 0x00000007,
    230     0x0000000b, 0x0000000b, 0x00040020, 0x0000000d,
    231     0x00000002, 0x0000000c, 0x0004003b, 0x0000000d,
    232     0x0000000e, 0x00000002, 0x00040015, 0x0000000f,
    233     0x00000020, 0x00000001, 0x0004002b, 0x0000000f,
    234     0x00000010, 0x00000002, 0x00040020, 0x00000011,
    235     0x00000002, 0x0000000b, 0x0004002b, 0x0000000f,
    236     0x00000014, 0x00000000, 0x00040020, 0x00000015,
    237     0x00000002, 0x00000007, 0x0004002b, 0x00000006,
    238     0x00000018, 0x3f800000, 0x00040020, 0x00000025,
    239     0x00000001, 0x00000007, 0x0004003b, 0x00000025,
    240     0x00000026, 0x00000001, 0x00040018, 0x00000034,
    241     0x00000007, 0x00000003, 0x0004002b, 0x00000006,
    242     0x00000035, 0x00000000, 0x0004003b, 0x00000025,
    243     0x00000043, 0x00000001, 0x00040020, 0x0000004a,
    244     0x00000007, 0x00000006, 0x0004001e, 0x00000057,
    245     0x0000000a, 0x00000006, 0x00040020, 0x00000058,
    246     0x00000003, 0x00000057, 0x0004003b, 0x00000058,
    247     0x00000059, 0x00000003, 0x0004002b, 0x0000000f,
    248     0x0000005a, 0x00000003, 0x00040020, 0x00000063,
    249     0x00000003, 0x0000000a, 0x00040020, 0x00000065,
    250     0x00000003, 0x00000007, 0x0004003b, 0x00000065,
    251     0x00000066, 0x00000003, 0x0004002b, 0x0000000f,
    252     0x00000067, 0x00000001, 0x00050036, 0x00000002,
    253     0x00000004, 0x00000000, 0x00000003, 0x000200f8,
    254     0x00000005, 0x0004003b, 0x00000008, 0x00000009,
    255     0x00000007, 0x0004003b, 0x00000008, 0x00000022,
    256     0x00000007, 0x0004003b, 0x00000008, 0x00000031,
    257     0x00000007, 0x0004003b, 0x00000008, 0x00000046,
    258     0x00000007, 0x0004003b, 0x0000004a, 0x0000004b,
    259     0x00000007, 0x00050041, 0x00000011, 0x00000012,
    260     0x0000000e, 0x00000010, 0x0004003d, 0x0000000b,
    261     0x00000013, 0x00000012, 0x00050041, 0x00000015,
    262     0x00000016, 0x0000000e, 0x00000014, 0x0004003d,
    263     0x00000007, 0x00000017, 0x00000016, 0x00050051,
    264     0x00000006, 0x00000019, 0x00000017, 0x00000000,
    265     0x00050051, 0x00000006, 0x0000001a, 0x00000017,
    266     0x00000001, 0x00050051, 0x00000006, 0x0000001b,
    267     0x00000017, 0x00000002, 0x00070050, 0x0000000a,
    268     0x0000001c, 0x00000019, 0x0000001a, 0x0000001b,
    269     0x00000018, 0x00050091, 0x0000000a, 0x0000001d,
    270     0x00000013, 0x0000001c, 0x00050051, 0x00000006,
    271     0x0000001e, 0x0000001d, 0x00000000, 0x00050051,
    272     0x00000006, 0x0000001f, 0x0000001d, 0x00000001,
    273     0x00050051, 0x00000006, 0x00000020, 0x0000001d,
    274     0x00000002, 0x00060050, 0x00000007, 0x00000021,
    275     0x0000001e, 0x0000001f, 0x00000020, 0x0003003e,
    276     0x00000009, 0x00000021, 0x00050041, 0x00000011,
    277     0x00000023, 0x0000000e, 0x00000010, 0x0004003d,
    278     0x0000000b, 0x00000024, 0x00000023, 0x0004003d,
    279     0x00000007, 0x00000027, 0x00000026, 0x00050051,
    280     0x00000006, 0x00000028, 0x00000027, 0x00000000,
    281     0x00050051, 0x00000006, 0x00000029, 0x00000027,
    282     0x00000001, 0x00050051, 0x00000006, 0x0000002a,
    283     0x00000027, 0x00000002, 0x00070050, 0x0000000a,
    284     0x0000002b, 0x00000028, 0x00000029, 0x0000002a,
    285     0x00000018, 0x00050091, 0x0000000a, 0x0000002c,
    286     0x00000024, 0x0000002b, 0x00050051, 0x00000006,
    287     0x0000002d, 0x0000002c, 0x00000000, 0x00050051,
    288     0x00000006, 0x0000002e, 0x0000002c, 0x00000001,
    289     0x00050051, 0x00000006, 0x0000002f, 0x0000002c,
    290     0x00000002, 0x00060050, 0x00000007, 0x00000030,
    291     0x0000002d, 0x0000002e, 0x0000002f, 0x0003003e,
    292     0x00000022, 0x00000030, 0x00050041, 0x00000011,
    293     0x00000032, 0x0000000e, 0x00000010, 0x0004003d,
    294     0x0000000b, 0x00000033, 0x00000032, 0x00060051,
    295     0x00000006, 0x00000036, 0x00000033, 0x00000000,
    296     0x00000000, 0x00060051, 0x00000006, 0x00000037,
    297     0x00000033, 0x00000000, 0x00000001, 0x00060051,
    298     0x00000006, 0x00000038, 0x00000033, 0x00000000,
    299     0x00000002, 0x00060051, 0x00000006, 0x00000039,
    300     0x00000033, 0x00000001, 0x00000000, 0x00060051,
    301     0x00000006, 0x0000003a, 0x00000033, 0x00000001,
    302     0x00000001, 0x00060051, 0x00000006, 0x0000003b,
    303     0x00000033, 0x00000001, 0x00000002, 0x00060051,
    304     0x00000006, 0x0000003c, 0x00000033, 0x00000002,
    305     0x00000000, 0x00060051, 0x00000006, 0x0000003d,
    306     0x00000033, 0x00000002, 0x00000001, 0x00060051,
    307     0x00000006, 0x0000003e, 0x00000033, 0x00000002,
    308     0x00000002, 0x00060050, 0x00000007, 0x0000003f,
    309     0x00000036, 0x00000037, 0x00000038, 0x00060050,
    310     0x00000007, 0x00000040, 0x00000039, 0x0000003a,
    311     0x0000003b, 0x00060050, 0x00000007, 0x00000041,
    312     0x0000003c, 0x0000003d, 0x0000003e, 0x00060050,
    313     0x00000034, 0x00000042, 0x0000003f, 0x00000040,
    314     0x00000041, 0x0004003d, 0x00000007, 0x00000044,
    315     0x00000043, 0x00050091, 0x00000007, 0x00000045,
    316     0x00000042, 0x00000044, 0x0003003e, 0x00000031,
    317     0x00000045, 0x0004003d, 0x00000007, 0x00000047,
    318     0x00000009, 0x0004003d, 0x00000007, 0x00000048,
    319     0x00000022, 0x00050083, 0x00000007, 0x00000049,
    320     0x00000047, 0x00000048, 0x0003003e, 0x00000046,
    321     0x00000049, 0x0004003d, 0x00000007, 0x0000004c,
    322     0x00000046, 0x0004003d, 0x00000007, 0x0000004d,
    323     0x00000031, 0x00050094, 0x00000006, 0x0000004e,
    324     0x0000004c, 0x0000004d, 0x0004003d, 0x00000007,
    325     0x0000004f, 0x00000046, 0x0006000c, 0x00000006,
    326     0x00000050, 0x00000001, 0x00000042, 0x0000004f,
    327     0x00050088, 0x00000006, 0x00000051, 0x0000004e,
    328     0x00000050, 0x0004003d, 0x00000007, 0x00000052,
    329     0x00000031, 0x0006000c, 0x00000006, 0x00000053,
    330     0x00000001, 0x00000042, 0x00000052, 0x00050088,
    331     0x00000006, 0x00000054, 0x00000051, 0x00000053,
    332     0x0003003e, 0x0000004b, 0x00000054, 0x0004003d,
    333     0x00000006, 0x00000055, 0x0000004b, 0x0006000c,
    334     0x00000006, 0x00000056, 0x00000001, 0x00000004,
    335     0x00000055, 0x0003003e, 0x0000004b, 0x00000056,
    336     0x00050041, 0x00000011, 0x0000005b, 0x0000000e,
    337     0x0000005a, 0x0004003d, 0x0000000b, 0x0000005c,
    338     0x0000005b, 0x0004003d, 0x00000007, 0x0000005d,
    339     0x00000022, 0x00050051, 0x00000006, 0x0000005e,
    340     0x0000005d, 0x00000000, 0x00050051, 0x00000006,
    341     0x0000005f, 0x0000005d, 0x00000001, 0x00050051,
    342     0x00000006, 0x00000060, 0x0000005d, 0x00000002,
    343     0x00070050, 0x0000000a, 0x00000061, 0x0000005e,
    344     0x0000005f, 0x00000060, 0x00000018, 0x00050091,
    345     0x0000000a, 0x00000062, 0x0000005c, 0x00000061,
    346     0x00050041, 0x00000063, 0x00000064, 0x00000059,
    347     0x00000014, 0x0003003e, 0x00000064, 0x00000062,
    348     0x00050041, 0x00000015, 0x00000068, 0x0000000e,
    349     0x00000067, 0x0004003d, 0x00000007, 0x00000069,
    350     0x00000068, 0x0004003d, 0x00000006, 0x0000006a,
    351     0x0000004b, 0x0005008e, 0x00000007, 0x0000006b,
    352     0x00000069, 0x0000006a, 0x0003003e, 0x00000066,
    353     0x0000006b, 0x000100fd, 0x00010038,
    354 };
    355