yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

PratapFix xfb size computation losing 32-bit-ness through arrays516724d9

main
2.4 KiB50 linesraw
1spv.xfbArrayStrideImplicit.vert
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 21
5
6                              Capability Shader
7                              Capability Float16
8                              Capability TransformFeedback
9                              Capability StorageInputOutput16
10                              Extension  "SPV_KHR_16bit_storage"
11               1:             ExtInstImport  "GLSL.std.450"
12                              MemoryModel Logical GLSL450
13                              EntryPoint Vertex 4  "main" 11 19
14                              ExecutionMode 4 Xfb
15                              Source GLSL 450
16                              SourceExtension  "GL_EXT_shader_explicit_arithmetic_types_float16"
17                              Name 4  "main"
18                              Name 11  "arr"
19                              Name 19  "h"
20                              Decorate 11(arr) Location 0
21                              Decorate 11(arr) Offset 0
22                              Decorate 11(arr) XfbBuffer 0
23                              Decorate 11(arr) XfbStride 8
24                              Decorate 19(h) Location 1
25                              Decorate 19(h) Offset 4
26                              Decorate 19(h) XfbBuffer 0
27                              Decorate 19(h) XfbStride 8
28               2:             TypeVoid
29               3:             TypeFunction 2
30               6:             TypeFloat 32
31               7:             TypeInt 32 0
32               8:      7(int) Constant 1
33               9:             TypeArray 6(float) 8
34              10:             TypePointer Output 9
35         11(arr):     10(ptr) Variable Output
36              12:             TypeInt 32 1
37              13:     12(int) Constant 0
38              14:    6(float) Constant 1065353216
39              15:             TypePointer Output 6(float)
40              17:             TypeFloat 16
41              18:             TypePointer Output 17(float16_t)
42           19(h):     18(ptr) Variable Output
43              20:17(float16_t) Constant 16384
44         4(main):           2 Function None 3
45               5:             Label
46              16:     15(ptr) AccessChain 11(arr) 13
47                              Store 16 14
48                              Store 19(h) 20
49                              Return
50                              FunctionEnd