• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1spv.subgroup.frag
2// Module Version 10300
3// Generated by (magic number): 8000b
4// Id's are bound by 17
5
6                              Capability Shader
7                              Capability GroupNonUniform
8               1:             ExtInstImport  "GLSL.std.450"
9                              MemoryModel Logical GLSL450
10                              EntryPoint Fragment 4  "main" 9 11 13
11                              ExecutionMode 4 OriginUpperLeft
12                              Source GLSL 450
13                              SourceExtension  "GL_KHR_shader_subgroup_basic"
14                              Name 4  "main"
15                              Name 9  "data"
16                              Name 11  "gl_SubgroupSize"
17                              Name 13  "gl_SubgroupInvocationID"
18                              Decorate 9(data) Location 0
19                              Decorate 11(gl_SubgroupSize) RelaxedPrecision
20                              Decorate 11(gl_SubgroupSize) Flat
21                              Decorate 11(gl_SubgroupSize) BuiltIn SubgroupSize
22                              Decorate 12 RelaxedPrecision
23                              Decorate 13(gl_SubgroupInvocationID) RelaxedPrecision
24                              Decorate 13(gl_SubgroupInvocationID) Flat
25                              Decorate 13(gl_SubgroupInvocationID) BuiltIn SubgroupLocalInvocationId
26                              Decorate 14 RelaxedPrecision
27                              Decorate 16 RelaxedPrecision
28               2:             TypeVoid
29               3:             TypeFunction 2
30               6:             TypeInt 32 0
31               7:             TypeVector 6(int) 4
32               8:             TypePointer Output 7(ivec4)
33         9(data):      8(ptr) Variable Output
34              10:             TypePointer Input 6(int)
3511(gl_SubgroupSize):     10(ptr) Variable Input
3613(gl_SubgroupInvocationID):     10(ptr) Variable Input
37              15:      6(int) Constant 0
38         4(main):           2 Function None 3
39               5:             Label
40              12:      6(int) Load 11(gl_SubgroupSize)
41              14:      6(int) Load 13(gl_SubgroupInvocationID)
42              16:    7(ivec4) CompositeConstruct 12 14 15 15
43                              Store 9(data) 16
44                              Return
45                              FunctionEnd
46