yum-mirror/glslang

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

Sven van HaastregtAdd GL_ARM_tensorse9d166cd

main
4.4 KiB91 linesraw
1spv.tensorARM.frag
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 55
5
6                              Capability Shader
7                              Capability Int8
8                              Capability TensorsARM
9                              Extension  "SPV_ARM_tensors"
10               1:             ExtInstImport  "GLSL.std.450"
11                              MemoryModel Logical GLSL450
12                              EntryPoint Fragment 4  "main" 25 49
13                              ExecutionMode 4 OriginUpperLeft
14                              Source GLSL 450
15                              SourceExtension  "GL_ARM_tensors"
16                              SourceExtension  "GL_EXT_shader_explicit_arithmetic_types"
17                              Name 4  "main"
18                              Name 8  "size_d1"
19                              Name 13  "tens"
20                              Name 17  "size_d2"
21                              Name 21  "coord_x"
22                              Name 25  "gl_FragCoord"
23                              Name 33  "coord_y"
24                              Name 40  "tensorValue"
25                              Name 49  "outColor"
26                              Decorate 13(tens) Binding 0
27                              Decorate 13(tens) DescriptorSet 0
28                              Decorate 25(gl_FragCoord) BuiltIn FragCoord
29                              Decorate 49(outColor) Location 0
30               2:             TypeVoid
31               3:             TypeFunction 2
32               6:             TypeInt 32 0
33               7:             TypePointer Function 6(int)
34               9:             TypeInt 8 0
35              10:      6(int) Constant 3
36              11:             TypeTensorARM 9(int8_t) 10
37              12:             TypePointer UniformConstant 11
38        13(tens):     12(ptr) Variable UniformConstant
39              15:      6(int) Constant 1
40              19:      6(int) Constant 2
41              22:             TypeFloat 32
42              23:             TypeVector 22(float) 4
43              24:             TypePointer Input 23(fvec4)
4425(gl_FragCoord):     24(ptr) Variable Input
45              26:      6(int) Constant 0
46              27:             TypePointer Input 22(float)
47              39:             TypePointer Function 9(int8_t)
48              41:   9(int8_t) Constant 0
49              45:             TypeArray 6(int) 10
50              48:             TypePointer Output 23(fvec4)
51    49(outColor):     48(ptr) Variable Output
52              50:   22(float) Constant 0
53              53:   22(float) Constant 1132396544
54         4(main):           2 Function None 3
55               5:             Label
56      8(size_d1):      7(ptr) Variable Function
57     17(size_d2):      7(ptr) Variable Function
58     21(coord_x):      7(ptr) Variable Function
59     33(coord_y):      7(ptr) Variable Function
60 40(tensorValue):     39(ptr) Variable Function
61              14:          11 Load 13(tens)
62              16:      6(int) TensorQuerySizeARM 14 15
63                              Store 8(size_d1) 16
64              18:          11 Load 13(tens)
65              20:      6(int) TensorQuerySizeARM 18 19
66                              Store 17(size_d2) 20
67              28:     27(ptr) AccessChain 25(gl_FragCoord) 26
68              29:   22(float) Load 28
69              30:      6(int) ConvertFToU 29
70              31:      6(int) Load 8(size_d1)
71              32:      6(int) UMod 30 31
72                              Store 21(coord_x) 32
73              34:     27(ptr) AccessChain 25(gl_FragCoord) 15
74              35:   22(float) Load 34
75              36:      6(int) ConvertFToU 35
76              37:      6(int) Load 17(size_d2)
77              38:      6(int) UMod 36 37
78                              Store 33(coord_y) 38
79                              Store 40(tensorValue) 41
80              42:          11 Load 13(tens)
81              43:      6(int) Load 33(coord_y)
82              44:      6(int) Load 21(coord_x)
83              46:          45 CompositeConstruct 43 44 15
84              47:   9(int8_t) TensorReadARM 42 46
85                              Store 40(tensorValue) 47
86              51:   9(int8_t) Load 40(tensorValue)
87              52:   22(float) ConvertUToF 51
88              54:   23(fvec4) CompositeConstruct 50 52 50 53
89                              Store 49(outColor) 54
90                              Return
91                              FunctionEnd