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.push_constant.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) Block
     48                               Decorate 14(params) DescriptorSet 0
     49                               Decorate 38(in_pos) Location 0
     50                               Decorate 67(in_normal) Location 1
     51                               MemberDecorate 87(gl_PerVertex) 0 BuiltIn Position
     52                               MemberDecorate 87(gl_PerVertex) 1 BuiltIn PointSize
     53                               Decorate 87(gl_PerVertex) Block
     54                2:             TypeVoid
     55                3:             TypeFunction 2
     56                6:             TypeFloat 32
     57                7:             TypeVector 6(float) 3
     58                8:             TypePointer Function 7(fvec3)
     59               10:             TypeVector 6(float) 4
     60               11:             TypeMatrix 10(fvec4) 4
     61  12(param_block):             TypeStruct 7(fvec3) 7(fvec3) 11 11
     62               13:             TypePointer PushConstant 12(param_block)
     63       14(params):     13(ptr) Variable PushConstant
     64               15:             TypeInt 32 1
     65               16:     15(int) Constant 2
     66               17:             TypePointer PushConstant 11
     67               20:     15(int) Constant 0
     68               21:             TypePointer PushConstant 7(fvec3)
     69               24:    6(float) Constant 1065353216
     70               37:             TypePointer Input 7(fvec3)
     71       38(in_pos):     37(ptr) Variable Input
     72               52:             TypeMatrix 7(fvec3) 3
     73               53:    6(float) Constant 0
     74    67(in_normal):     37(ptr) Variable Input
     75               74:             TypePointer Function 6(float)
     76 87(gl_PerVertex):             TypeStruct 10(fvec4) 6(float)
     77               88:             TypePointer Output 87(gl_PerVertex)
     78               89:     88(ptr) Variable Output
     79               90:     15(int) Constant 3
     80               99:             TypePointer Output 10(fvec4)
     81              101:             TypePointer Output 7(fvec3)
     82       102(color):    101(ptr) Variable Output
     83              103:     15(int) Constant 1
     84          4(main):           2 Function None 3
     85                5:             Label
     86   9(world_light):      8(ptr) Variable Function
     87    34(world_pos):      8(ptr) Variable Function
     88 49(world_normal):      8(ptr) Variable Function
     89    70(light_dir):      8(ptr) Variable Function
     90   75(brightness):     74(ptr) Variable Function
     91               18:     17(ptr) AccessChain 14(params) 16
     92               19:          11 Load 18
     93               22:     21(ptr) AccessChain 14(params) 20
     94               23:    7(fvec3) Load 22
     95               25:    6(float) CompositeExtract 23 0
     96               26:    6(float) CompositeExtract 23 1
     97               27:    6(float) CompositeExtract 23 2
     98               28:   10(fvec4) CompositeConstruct 25 26 27 24
     99               29:   10(fvec4) MatrixTimesVector 19 28
    100               30:    6(float) CompositeExtract 29 0
    101               31:    6(float) CompositeExtract 29 1
    102               32:    6(float) CompositeExtract 29 2
    103               33:    7(fvec3) CompositeConstruct 30 31 32
    104                               Store 9(world_light) 33
    105               35:     17(ptr) AccessChain 14(params) 16
    106               36:          11 Load 35
    107               39:    7(fvec3) Load 38(in_pos)
    108               40:    6(float) CompositeExtract 39 0
    109               41:    6(float) CompositeExtract 39 1
    110               42:    6(float) CompositeExtract 39 2
    111               43:   10(fvec4) CompositeConstruct 40 41 42 24
    112               44:   10(fvec4) MatrixTimesVector 36 43
    113               45:    6(float) CompositeExtract 44 0
    114               46:    6(float) CompositeExtract 44 1
    115               47:    6(float) CompositeExtract 44 2
    116               48:    7(fvec3) CompositeConstruct 45 46 47
    117                               Store 34(world_pos) 48
    118               50:     17(ptr) AccessChain 14(params) 16
    119               51:          11 Load 50
    120               54:    6(float) CompositeExtract 51 0 0
    121               55:    6(float) CompositeExtract 51 0 1
    122               56:    6(float) CompositeExtract 51 0 2
    123               57:    6(float) CompositeExtract 51 1 0
    124               58:    6(float) CompositeExtract 51 1 1
    125               59:    6(float) CompositeExtract 51 1 2
    126               60:    6(float) CompositeExtract 51 2 0
    127               61:    6(float) CompositeExtract 51 2 1
    128               62:    6(float) CompositeExtract 51 2 2
    129               63:    7(fvec3) CompositeConstruct 54 55 56
    130               64:    7(fvec3) CompositeConstruct 57 58 59
    131               65:    7(fvec3) CompositeConstruct 60 61 62
    132               66:          52 CompositeConstruct 63 64 65
    133               68:    7(fvec3) Load 67(in_normal)
    134               69:    7(fvec3) MatrixTimesVector 66 68
    135                               Store 49(world_normal) 69
    136               71:    7(fvec3) Load 9(world_light)
    137               72:    7(fvec3) Load 34(world_pos)
    138               73:    7(fvec3) FSub 71 72
    139                               Store 70(light_dir) 73
    140               76:    7(fvec3) Load 70(light_dir)
    141               77:    7(fvec3) Load 49(world_normal)
    142               78:    6(float) Dot 76 77
    143               79:    7(fvec3) Load 70(light_dir)
    144               80:    6(float) ExtInst 1(GLSL.std.450) 66(Length) 79
    145               81:    6(float) FDiv 78 80
    146               82:    7(fvec3) Load 49(world_normal)
    147               83:    6(float) ExtInst 1(GLSL.std.450) 66(Length) 82
    148               84:    6(float) FDiv 81 83
    149                               Store 75(brightness) 84
    150               85:    6(float) Load 75(brightness)
    151               86:    6(float) ExtInst 1(GLSL.std.450) 4(FAbs) 85
    152                               Store 75(brightness) 86
    153               91:     17(ptr) AccessChain 14(params) 90
    154               92:          11 Load 91
    155               93:    7(fvec3) Load 34(world_pos)
    156               94:    6(float) CompositeExtract 93 0
    157               95:    6(float) CompositeExtract 93 1
    158               96:    6(float) CompositeExtract 93 2
    159               97:   10(fvec4) CompositeConstruct 94 95 96 24
    160               98:   10(fvec4) MatrixTimesVector 92 97
    161              100:     99(ptr) AccessChain 89 20
    162                               Store 100 98
    163              104:     21(ptr) AccessChain 14(params) 103
    164              105:    7(fvec3) Load 104
    165              106:    6(float) Load 75(brightness)
    166              107:    7(fvec3) VectorTimesScalar 105 106
    167                               Store 102(color) 107
    168                               Return
    169                               FunctionEnd
    170 #endif
    171 
    172 static const uint32_t Smoke_push_constant_vert[715] = {
    173     0x07230203, 0x00010000, 0x00080001, 0x0000006c, 0x00000000, 0x00020011, 0x00000001, 0x0006000b, 0x00000001, 0x4c534c47,
    174     0x6474732e, 0x3035342e, 0x00000000, 0x0003000e, 0x00000000, 0x00000001, 0x0009000f, 0x00000000, 0x00000004, 0x6e69616d,
    175     0x00000000, 0x00000026, 0x00000043, 0x00000059, 0x00000066, 0x00030003, 0x00000001, 0x00000136, 0x00040005, 0x00000004,
    176     0x6e69616d, 0x00000000, 0x00050005, 0x00000009, 0x6c726f77, 0x696c5f64, 0x00746867, 0x00050005, 0x0000000c, 0x61726170,
    177     0x6c625f6d, 0x006b636f, 0x00060006, 0x0000000c, 0x00000000, 0x6867696c, 0x6f705f74, 0x00000073, 0x00060006, 0x0000000c,
    178     0x00000001, 0x6867696c, 0x6f635f74, 0x00726f6c, 0x00050006, 0x0000000c, 0x00000002, 0x65646f6d, 0x0000006c, 0x00070006,
    179     0x0000000c, 0x00000003, 0x77656976, 0x6f72705f, 0x7463656a, 0x006e6f69, 0x00040005, 0x0000000e, 0x61726170, 0x0000736d,
    180     0x00050005, 0x00000022, 0x6c726f77, 0x6f705f64, 0x00000073, 0x00040005, 0x00000026, 0x705f6e69, 0x0000736f, 0x00060005,
    181     0x00000031, 0x6c726f77, 0x6f6e5f64, 0x6c616d72, 0x00000000, 0x00050005, 0x00000043, 0x6e5f6e69, 0x616d726f, 0x0000006c,
    182     0x00050005, 0x00000046, 0x6867696c, 0x69645f74, 0x00000072, 0x00050005, 0x0000004b, 0x67697262, 0x656e7468, 0x00007373,
    183     0x00060005, 0x00000057, 0x505f6c67, 0x65567265, 0x78657472, 0x00000000, 0x00060006, 0x00000057, 0x00000000, 0x505f6c67,
    184     0x7469736f, 0x006e6f69, 0x00070006, 0x00000057, 0x00000001, 0x505f6c67, 0x746e696f, 0x657a6953, 0x00000000, 0x00030005,
    185     0x00000059, 0x00000000, 0x00040005, 0x00000066, 0x6f6c6f63, 0x00000072, 0x00050048, 0x0000000c, 0x00000000, 0x00000023,
    186     0x00000000, 0x00050048, 0x0000000c, 0x00000001, 0x00000023, 0x00000010, 0x00040048, 0x0000000c, 0x00000002, 0x00000005,
    187     0x00050048, 0x0000000c, 0x00000002, 0x00000023, 0x00000020, 0x00050048, 0x0000000c, 0x00000002, 0x00000007, 0x00000010,
    188     0x00040048, 0x0000000c, 0x00000003, 0x00000005, 0x00050048, 0x0000000c, 0x00000003, 0x00000023, 0x00000060, 0x00050048,
    189     0x0000000c, 0x00000003, 0x00000007, 0x00000010, 0x00030047, 0x0000000c, 0x00000002, 0x00040047, 0x0000000e, 0x00000022,
    190     0x00000000, 0x00040047, 0x00000026, 0x0000001e, 0x00000000, 0x00040047, 0x00000043, 0x0000001e, 0x00000001, 0x00050048,
    191     0x00000057, 0x00000000, 0x0000000b, 0x00000000, 0x00050048, 0x00000057, 0x00000001, 0x0000000b, 0x00000001, 0x00030047,
    192     0x00000057, 0x00000002, 0x00020013, 0x00000002, 0x00030021, 0x00000003, 0x00000002, 0x00030016, 0x00000006, 0x00000020,
    193     0x00040017, 0x00000007, 0x00000006, 0x00000003, 0x00040020, 0x00000008, 0x00000007, 0x00000007, 0x00040017, 0x0000000a,
    194     0x00000006, 0x00000004, 0x00040018, 0x0000000b, 0x0000000a, 0x00000004, 0x0006001e, 0x0000000c, 0x00000007, 0x00000007,
    195     0x0000000b, 0x0000000b, 0x00040020, 0x0000000d, 0x00000009, 0x0000000c, 0x0004003b, 0x0000000d, 0x0000000e, 0x00000009,
    196     0x00040015, 0x0000000f, 0x00000020, 0x00000001, 0x0004002b, 0x0000000f, 0x00000010, 0x00000002, 0x00040020, 0x00000011,
    197     0x00000009, 0x0000000b, 0x0004002b, 0x0000000f, 0x00000014, 0x00000000, 0x00040020, 0x00000015, 0x00000009, 0x00000007,
    198     0x0004002b, 0x00000006, 0x00000018, 0x3f800000, 0x00040020, 0x00000025, 0x00000001, 0x00000007, 0x0004003b, 0x00000025,
    199     0x00000026, 0x00000001, 0x00040018, 0x00000034, 0x00000007, 0x00000003, 0x0004002b, 0x00000006, 0x00000035, 0x00000000,
    200     0x0004003b, 0x00000025, 0x00000043, 0x00000001, 0x00040020, 0x0000004a, 0x00000007, 0x00000006, 0x0004001e, 0x00000057,
    201     0x0000000a, 0x00000006, 0x00040020, 0x00000058, 0x00000003, 0x00000057, 0x0004003b, 0x00000058, 0x00000059, 0x00000003,
    202     0x0004002b, 0x0000000f, 0x0000005a, 0x00000003, 0x00040020, 0x00000063, 0x00000003, 0x0000000a, 0x00040020, 0x00000065,
    203     0x00000003, 0x00000007, 0x0004003b, 0x00000065, 0x00000066, 0x00000003, 0x0004002b, 0x0000000f, 0x00000067, 0x00000001,
    204     0x00050036, 0x00000002, 0x00000004, 0x00000000, 0x00000003, 0x000200f8, 0x00000005, 0x0004003b, 0x00000008, 0x00000009,
    205     0x00000007, 0x0004003b, 0x00000008, 0x00000022, 0x00000007, 0x0004003b, 0x00000008, 0x00000031, 0x00000007, 0x0004003b,
    206     0x00000008, 0x00000046, 0x00000007, 0x0004003b, 0x0000004a, 0x0000004b, 0x00000007, 0x00050041, 0x00000011, 0x00000012,
    207     0x0000000e, 0x00000010, 0x0004003d, 0x0000000b, 0x00000013, 0x00000012, 0x00050041, 0x00000015, 0x00000016, 0x0000000e,
    208     0x00000014, 0x0004003d, 0x00000007, 0x00000017, 0x00000016, 0x00050051, 0x00000006, 0x00000019, 0x00000017, 0x00000000,
    209     0x00050051, 0x00000006, 0x0000001a, 0x00000017, 0x00000001, 0x00050051, 0x00000006, 0x0000001b, 0x00000017, 0x00000002,
    210     0x00070050, 0x0000000a, 0x0000001c, 0x00000019, 0x0000001a, 0x0000001b, 0x00000018, 0x00050091, 0x0000000a, 0x0000001d,
    211     0x00000013, 0x0000001c, 0x00050051, 0x00000006, 0x0000001e, 0x0000001d, 0x00000000, 0x00050051, 0x00000006, 0x0000001f,
    212     0x0000001d, 0x00000001, 0x00050051, 0x00000006, 0x00000020, 0x0000001d, 0x00000002, 0x00060050, 0x00000007, 0x00000021,
    213     0x0000001e, 0x0000001f, 0x00000020, 0x0003003e, 0x00000009, 0x00000021, 0x00050041, 0x00000011, 0x00000023, 0x0000000e,
    214     0x00000010, 0x0004003d, 0x0000000b, 0x00000024, 0x00000023, 0x0004003d, 0x00000007, 0x00000027, 0x00000026, 0x00050051,
    215     0x00000006, 0x00000028, 0x00000027, 0x00000000, 0x00050051, 0x00000006, 0x00000029, 0x00000027, 0x00000001, 0x00050051,
    216     0x00000006, 0x0000002a, 0x00000027, 0x00000002, 0x00070050, 0x0000000a, 0x0000002b, 0x00000028, 0x00000029, 0x0000002a,
    217     0x00000018, 0x00050091, 0x0000000a, 0x0000002c, 0x00000024, 0x0000002b, 0x00050051, 0x00000006, 0x0000002d, 0x0000002c,
    218     0x00000000, 0x00050051, 0x00000006, 0x0000002e, 0x0000002c, 0x00000001, 0x00050051, 0x00000006, 0x0000002f, 0x0000002c,
    219     0x00000002, 0x00060050, 0x00000007, 0x00000030, 0x0000002d, 0x0000002e, 0x0000002f, 0x0003003e, 0x00000022, 0x00000030,
    220     0x00050041, 0x00000011, 0x00000032, 0x0000000e, 0x00000010, 0x0004003d, 0x0000000b, 0x00000033, 0x00000032, 0x00060051,
    221     0x00000006, 0x00000036, 0x00000033, 0x00000000, 0x00000000, 0x00060051, 0x00000006, 0x00000037, 0x00000033, 0x00000000,
    222     0x00000001, 0x00060051, 0x00000006, 0x00000038, 0x00000033, 0x00000000, 0x00000002, 0x00060051, 0x00000006, 0x00000039,
    223     0x00000033, 0x00000001, 0x00000000, 0x00060051, 0x00000006, 0x0000003a, 0x00000033, 0x00000001, 0x00000001, 0x00060051,
    224     0x00000006, 0x0000003b, 0x00000033, 0x00000001, 0x00000002, 0x00060051, 0x00000006, 0x0000003c, 0x00000033, 0x00000002,
    225     0x00000000, 0x00060051, 0x00000006, 0x0000003d, 0x00000033, 0x00000002, 0x00000001, 0x00060051, 0x00000006, 0x0000003e,
    226     0x00000033, 0x00000002, 0x00000002, 0x00060050, 0x00000007, 0x0000003f, 0x00000036, 0x00000037, 0x00000038, 0x00060050,
    227     0x00000007, 0x00000040, 0x00000039, 0x0000003a, 0x0000003b, 0x00060050, 0x00000007, 0x00000041, 0x0000003c, 0x0000003d,
    228     0x0000003e, 0x00060050, 0x00000034, 0x00000042, 0x0000003f, 0x00000040, 0x00000041, 0x0004003d, 0x00000007, 0x00000044,
    229     0x00000043, 0x00050091, 0x00000007, 0x00000045, 0x00000042, 0x00000044, 0x0003003e, 0x00000031, 0x00000045, 0x0004003d,
    230     0x00000007, 0x00000047, 0x00000009, 0x0004003d, 0x00000007, 0x00000048, 0x00000022, 0x00050083, 0x00000007, 0x00000049,
    231     0x00000047, 0x00000048, 0x0003003e, 0x00000046, 0x00000049, 0x0004003d, 0x00000007, 0x0000004c, 0x00000046, 0x0004003d,
    232     0x00000007, 0x0000004d, 0x00000031, 0x00050094, 0x00000006, 0x0000004e, 0x0000004c, 0x0000004d, 0x0004003d, 0x00000007,
    233     0x0000004f, 0x00000046, 0x0006000c, 0x00000006, 0x00000050, 0x00000001, 0x00000042, 0x0000004f, 0x00050088, 0x00000006,
    234     0x00000051, 0x0000004e, 0x00000050, 0x0004003d, 0x00000007, 0x00000052, 0x00000031, 0x0006000c, 0x00000006, 0x00000053,
    235     0x00000001, 0x00000042, 0x00000052, 0x00050088, 0x00000006, 0x00000054, 0x00000051, 0x00000053, 0x0003003e, 0x0000004b,
    236     0x00000054, 0x0004003d, 0x00000006, 0x00000055, 0x0000004b, 0x0006000c, 0x00000006, 0x00000056, 0x00000001, 0x00000004,
    237     0x00000055, 0x0003003e, 0x0000004b, 0x00000056, 0x00050041, 0x00000011, 0x0000005b, 0x0000000e, 0x0000005a, 0x0004003d,
    238     0x0000000b, 0x0000005c, 0x0000005b, 0x0004003d, 0x00000007, 0x0000005d, 0x00000022, 0x00050051, 0x00000006, 0x0000005e,
    239     0x0000005d, 0x00000000, 0x00050051, 0x00000006, 0x0000005f, 0x0000005d, 0x00000001, 0x00050051, 0x00000006, 0x00000060,
    240     0x0000005d, 0x00000002, 0x00070050, 0x0000000a, 0x00000061, 0x0000005e, 0x0000005f, 0x00000060, 0x00000018, 0x00050091,
    241     0x0000000a, 0x00000062, 0x0000005c, 0x00000061, 0x00050041, 0x00000063, 0x00000064, 0x00000059, 0x00000014, 0x0003003e,
    242     0x00000064, 0x00000062, 0x00050041, 0x00000015, 0x00000068, 0x0000000e, 0x00000067, 0x0004003d, 0x00000007, 0x00000069,
    243     0x00000068, 0x0004003d, 0x00000006, 0x0000006a, 0x0000004b, 0x0005008e, 0x00000007, 0x0000006b, 0x00000069, 0x0000006a,
    244     0x0003003e, 0x00000066, 0x0000006b, 0x000100fd, 0x00010038,
    245 };
    246