• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1spv.8bitstorage-ubo.vert
2// Module Version 10000
3// Generated by (magic number): 8000a
4// Id's are bound by 29
5
6                              Capability Shader
7                              Capability UniformAndStorageBuffer8BitAccess
8                              Extension  "SPV_KHR_8bit_storage"
9               1:             ExtInstImport  "GLSL.std.450"
10                              MemoryModel Logical GLSL450
11                              EntryPoint Vertex 4  "main" 9 20
12                              Source GLSL 450
13                              SourceExtension  "GL_EXT_shader_8bit_storage"
14                              Name 4  "main"
15                              Name 9  "color"
16                              Name 14  "Vertices"
17                              MemberName 14(Vertices) 0  "vertices"
18                              Name 16  ""
19                              Name 20  "gl_VertexIndex"
20                              Decorate 9(color) Location 0
21                              Decorate 13 ArrayStride 16
22                              MemberDecorate 14(Vertices) 0 Offset 0
23                              Decorate 14(Vertices) Block
24                              Decorate 16 DescriptorSet 0
25                              Decorate 16 Binding 0
26                              Decorate 20(gl_VertexIndex) BuiltIn VertexIndex
27               2:             TypeVoid
28               3:             TypeFunction 2
29               6:             TypeFloat 32
30               7:             TypeVector 6(float) 4
31               8:             TypePointer Output 7(fvec4)
32        9(color):      8(ptr) Variable Output
33              10:             TypeInt 8 0
34              11:             TypeInt 32 0
35              12:     11(int) Constant 512
36              13:             TypeArray 10(int8_t) 12
37    14(Vertices):             TypeStruct 13
38              15:             TypePointer Uniform 14(Vertices)
39              16:     15(ptr) Variable Uniform
40              17:             TypeInt 32 1
41              18:     17(int) Constant 0
42              19:             TypePointer Input 17(int)
4320(gl_VertexIndex):     19(ptr) Variable Input
44              22:             TypePointer Uniform 10(int8_t)
45         4(main):           2 Function None 3
46               5:             Label
47              21:     17(int) Load 20(gl_VertexIndex)
48              23:     22(ptr) AccessChain 16 18 21
49              24:  10(int8_t) Load 23
50              25:     11(int) UConvert 24
51              26:     17(int) Bitcast 25
52              27:    6(float) ConvertSToF 26
53              28:    7(fvec4) CompositeConstruct 27 27 27 27
54                              Store 9(color) 28
55                              Return
56                              FunctionEnd
57