• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1spv.rankShift.comp
2// Module Version 10000
3// Generated by (magic number): 8000a
4// Id's are bound by 33
5
6                              Capability Shader
7                              Capability Int64
8               1:             ExtInstImport  "GLSL.std.450"
9                              MemoryModel Logical GLSL450
10                              EntryPoint GLCompute 4  "main"
11                              ExecutionMode 4 LocalSize 54 1 1
12                              Source GLSL 450
13                              SourceExtension  "GL_ARB_gpu_shader_int64"
14                              Name 4  "main"
15                              Name 8  "result"
16                              Name 11  "arg0"
17                              Name 15  "arg1"
18                              Decorate 11(arg0) Location 4
19                              Decorate 11(arg0) DescriptorSet 0
20                              Decorate 11(arg0) Binding 0
21                              Decorate 15(arg1) Location 5
22                              Decorate 15(arg1) DescriptorSet 0
23                              Decorate 15(arg1) Binding 1
24                              Decorate 32 BuiltIn WorkgroupSize
25               2:             TypeVoid
26               3:             TypeFunction 2
27               6:             TypeInt 64 0
28               7:             TypePointer Function 6(int64_t)
29               9:             TypeInt 64 1
30              10:             TypePointer UniformConstant 9(int64_t)
31        11(arg0):     10(ptr) Variable UniformConstant
32              13:             TypeInt 32 0
33              14:             TypePointer UniformConstant 13(int)
34        15(arg1):     14(ptr) Variable UniformConstant
35              29:             TypeVector 13(int) 3
36              30:     13(int) Constant 54
37              31:     13(int) Constant 1
38              32:   29(ivec3) ConstantComposite 30 31 31
39         4(main):           2 Function None 3
40               5:             Label
41       8(result):      7(ptr) Variable Function
42              12:  9(int64_t) Load 11(arg0)
43              16:     13(int) Load 15(arg1)
44              17:  9(int64_t) ShiftLeftLogical 12 16
45              18:  6(int64_t) Bitcast 17
46                              Store 8(result) 18
47              19:  9(int64_t) Load 11(arg0)
48              20:     13(int) Load 15(arg1)
49              21:  9(int64_t) ShiftRightArithmetic 19 20
50              22:  6(int64_t) Bitcast 21
51                              Store 8(result) 22
52              23:     13(int) Load 15(arg1)
53              24:  6(int64_t) Load 8(result)
54              25:  6(int64_t) ShiftLeftLogical 24 23
55                              Store 8(result) 25
56              26:     13(int) Load 15(arg1)
57              27:  6(int64_t) Load 8(result)
58              28:  6(int64_t) ShiftRightLogical 27 26
59                              Store 8(result) 28
60                              Return
61                              FunctionEnd
62