• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1spv.8bit-16bit-construction.frag
2Validation failed
3// Module Version 10000
4// Generated by (magic number): 8000a
5// Id's are bound by 43
6
7                              Capability Shader
8                              Capability StorageUniformBufferBlock16
9                              Capability UniformAndStorageBuffer8BitAccess
10                              Extension  "SPV_KHR_16bit_storage"
11                              Extension  "SPV_KHR_8bit_storage"
12               1:             ExtInstImport  "GLSL.std.450"
13                              MemoryModel Logical GLSL450
14                              EntryPoint Fragment 4  "main"
15                              ExecutionMode 4 OriginUpperLeft
16                              Source GLSL 450
17                              SourceExtension  "GL_EXT_shader_16bit_storage"
18                              SourceExtension  "GL_EXT_shader_8bit_storage"
19                              Name 4  "main"
20                              Name 11  "B"
21                              MemberName 11(B) 0  "i8_from_i16"
22                              MemberName 11(B) 1  "i16_from_i8"
23                              MemberName 11(B) 2  "u8_from_u16"
24                              MemberName 11(B) 3  "u16_from_u8"
25                              MemberName 11(B) 4  "f16_from_i8"
26                              Name 13  ""
27                              MemberDecorate 11(B) 0 Offset 0
28                              MemberDecorate 11(B) 1 Offset 2
29                              MemberDecorate 11(B) 2 Offset 4
30                              MemberDecorate 11(B) 3 Offset 6
31                              MemberDecorate 11(B) 4 Offset 8
32                              Decorate 11(B) BufferBlock
33                              Decorate 13 DescriptorSet 0
34                              Decorate 13 Binding 0
35               2:             TypeVoid
36               3:             TypeFunction 2
37               6:             TypeInt 8 1
38               7:             TypeInt 16 1
39               8:             TypeInt 8 0
40               9:             TypeInt 16 0
41              10:             TypeFloat 16
42           11(B):             TypeStruct 6(int8_t) 7(int16_t) 8(int8_t) 9(int16_t) 10(float16_t)
43              12:             TypePointer Uniform 11(B)
44              13:     12(ptr) Variable Uniform
45              14:             TypeInt 32 1
46              15:     14(int) Constant 0
47              16:     14(int) Constant 1
48              19:             TypePointer Uniform 6(int8_t)
49              23:             TypePointer Uniform 7(int16_t)
50              25:     14(int) Constant 2
51              26:             TypeInt 32 0
52              27:     26(int) Constant 1
53              30:             TypePointer Uniform 8(int8_t)
54              32:     14(int) Constant 3
55              35:             TypePointer Uniform 9(int16_t)
56              37:     14(int) Constant 4
57              39:             TypeFloat 32
58              41:             TypePointer Uniform 10(float16_t)
59         4(main):           2 Function None 3
60               5:             Label
61              17:  7(int16_t) SConvert 16
62              18:   6(int8_t) SConvert 17
63              20:     19(ptr) AccessChain 13 15
64                              Store 20 18
65              21:   6(int8_t) SConvert 16
66              22:  7(int16_t) SConvert 21
67              24:     23(ptr) AccessChain 13 16
68                              Store 24 22
69              28:  9(int16_t) UConvert 27
70              29:   8(int8_t) UConvert 28
71              31:     30(ptr) AccessChain 13 25
72                              Store 31 29
73              33:   8(int8_t) UConvert 27
74              34:  9(int16_t) UConvert 33
75              36:     35(ptr) AccessChain 13 32
76                              Store 36 34
77              38:   6(int8_t) SConvert 16
78              40:10(float16_t) FConvert 38
79              42:     41(ptr) AccessChain 13 37
80                              Store 42 40
81                              Return
82                              FunctionEnd
83