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.frag
      5 Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.
      6 
      7 
      8 Linked fragment stage:
      9 
     10 
     11 // Module Version 10000
     12 // Generated by (magic number): 80001
     13 // Id's are bound by 19
     14 
     15                               Capability Shader
     16                1:             ExtInstImport  "GLSL.std.450"
     17                               MemoryModel Logical GLSL450
     18                               EntryPoint Fragment 4  "main" 9 12
     19                               ExecutionMode 4 OriginLowerLeft
     20                               Source ESSL 310
     21                               Name 4  "main"
     22                               Name 9  "fragcolor"
     23                               Name 12  "color"
     24                               Decorate 9(fragcolor) Location 0
     25                2:             TypeVoid
     26                3:             TypeFunction 2
     27                6:             TypeFloat 32
     28                7:             TypeVector 6(float) 4
     29                8:             TypePointer Output 7(fvec4)
     30     9(fragcolor):      8(ptr) Variable Output
     31               10:             TypeVector 6(float) 3
     32               11:             TypePointer Input 10(fvec3)
     33        12(color):     11(ptr) Variable Input
     34               14:    6(float) Constant 1056964608
     35          4(main):           2 Function None 3
     36                5:             Label
     37               13:   10(fvec3) Load 12(color)
     38               15:    6(float) CompositeExtract 13 0
     39               16:    6(float) CompositeExtract 13 1
     40               17:    6(float) CompositeExtract 13 2
     41               18:    7(fvec4) CompositeConstruct 15 16 17 14
     42                               Store 9(fragcolor) 18
     43                               Return
     44                               FunctionEnd
     45 #endif
     46 
     47 static const uint32_t Smoke_frag[120] = {
     48     0x07230203, 0x00010000, 0x00080001, 0x00000013, 0x00000000, 0x00020011, 0x00000001, 0x0006000b, 0x00000001, 0x4c534c47,
     49     0x6474732e, 0x3035342e, 0x00000000, 0x0003000e, 0x00000000, 0x00000001, 0x0007000f, 0x00000004, 0x00000004, 0x6e69616d,
     50     0x00000000, 0x00000009, 0x0000000c, 0x00030010, 0x00000004, 0x00000008, 0x00030003, 0x00000001, 0x00000136, 0x00040005,
     51     0x00000004, 0x6e69616d, 0x00000000, 0x00050005, 0x00000009, 0x67617266, 0x6f6c6f63, 0x00000072, 0x00040005, 0x0000000c,
     52     0x6f6c6f63, 0x00000072, 0x00040047, 0x00000009, 0x0000001e, 0x00000000, 0x00020013, 0x00000002, 0x00030021, 0x00000003,
     53     0x00000002, 0x00030016, 0x00000006, 0x00000020, 0x00040017, 0x00000007, 0x00000006, 0x00000004, 0x00040020, 0x00000008,
     54     0x00000003, 0x00000007, 0x0004003b, 0x00000008, 0x00000009, 0x00000003, 0x00040017, 0x0000000a, 0x00000006, 0x00000003,
     55     0x00040020, 0x0000000b, 0x00000001, 0x0000000a, 0x0004003b, 0x0000000b, 0x0000000c, 0x00000001, 0x0004002b, 0x00000006,
     56     0x0000000e, 0x3f000000, 0x00050036, 0x00000002, 0x00000004, 0x00000000, 0x00000003, 0x000200f8, 0x00000005, 0x0004003d,
     57     0x0000000a, 0x0000000d, 0x0000000c, 0x00050051, 0x00000006, 0x0000000f, 0x0000000d, 0x00000000, 0x00050051, 0x00000006,
     58     0x00000010, 0x0000000d, 0x00000001, 0x00050051, 0x00000006, 0x00000011, 0x0000000d, 0x00000002, 0x00070050, 0x00000007,
     59     0x00000012, 0x0000000f, 0x00000010, 0x00000011, 0x0000000e, 0x0003003e, 0x00000009, 0x00000012, 0x000100fd, 0x00010038,
     60 };
     61