yum-mirror/glslang

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

Jeff BolzImplement GL_EXT_shader_64bit_indexing (#4082)e2ab21f2

16.3.0
3.6 KiB72 linesraw
1spv.promote_uint32_indices.comp
2// Module Version 10600
3// Generated by (magic number): 8000b
4// Id's are bound by 36
5
6                              Capability Shader
7                              Capability Int64
8                              Capability PhysicalStorageBufferAddressesEXT
9               1:             ExtInstImport  "GLSL.std.450"
10                              MemoryModel PhysicalStorageBuffer64EXT GLSL450
11                              EntryPoint GLCompute 4  "main" 16
12                              ExecutionMode 4 LocalSize 64 1 1
13                              Source GLSL 450
14                              SourceExtension  "GL_EXT_buffer_reference"
15                              SourceExtension  "GL_EXT_shader_64bit_indexing"
16                              SourceExtension  "GL_EXT_shader_explicit_arithmetic_types"
17                              SourceExtension  "GL_KHR_cooperative_matrix"
18                              SourceExtension  "GL_KHR_memory_scope_semantics"
19                              SourceExtension  "GL_NV_cooperative_vector"
20                              Name 4  "main"
21                              Name 8  "element"
22                              Name 12  "y"
23                              Name 14  "Block"
24                              MemberName 14(Block) 0  "x"
25                              Name 16  "block"
26                              Decorate 13 ArrayStride 4
27                              Decorate 14(Block) Block
28                              MemberDecorate 14(Block) 0 Coherent
29                              MemberDecorate 14(Block) 0 Offset 0
30                              Decorate 16(block) Coherent
31                              Decorate 16(block) Binding 0
32                              Decorate 16(block) DescriptorSet 0
33               2:             TypeVoid
34               3:             TypeFunction 2
35               6:             TypeInt 32 0
36               7:             TypePointer Function 6(int)
37               9:      6(int) Constant 3000000000
38              10:             TypeFloat 32
39              11:             TypePointer Function 10(float)
40              13:             TypeRuntimeArray 10(float)
41       14(Block):             TypeStruct 13
42              15:             TypePointer StorageBuffer 14(Block)
43       16(block):     15(ptr) Variable StorageBuffer
44              17:             TypeInt 32 1
45              18:     17(int) Constant 0
46              20:             TypeInt 64 1
47              21:             TypeInt 64 0
48              23:             TypePointer StorageBuffer 10(float)
49              26: 20(int64_t) Constant 4000000000 0
50              29: 20(int64_t) Constant 705032704 1
51              32:             TypeVector 6(int) 3
52              33:      6(int) Constant 64
53              34:      6(int) Constant 1
54              35:   32(ivec3) ConstantComposite 33 34 34
55         4(main):           2 Function None 3
56               5:             Label
57      8(element):      7(ptr) Variable Function
58           12(y):     11(ptr) Variable Function
59                              Store 8(element) 9
60              19:      6(int) Load 8(element)
61              22: 21(int64_t) UConvert 19
62              24:     23(ptr) AccessChain 16(block) 18 22
63              25:   10(float) Load 24
64                              Store 12(y) 25
65              27:     23(ptr) AccessChain 16(block) 18 26
66              28:   10(float) Load 27
67                              Store 12(y) 28
68              30:     23(ptr) AccessChain 16(block) 18 29
69              31:   10(float) Load 30
70                              Store 12(y) 31
71                              Return
72                              FunctionEnd