• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1spv.subgroup.tesc
2// Module Version 10300
3// Generated by (magic number): 8000b
4// Id's are bound by 26
5
6                              Capability Tessellation
7                              Capability GroupNonUniform
8               1:             ExtInstImport  "GLSL.std.450"
9                              MemoryModel Logical GLSL450
10                              EntryPoint TessellationControl 4  "main" 15 18 20
11                              ExecutionMode 4 OutputVertices 1
12                              Source GLSL 450
13                              SourceExtension  "GL_KHR_shader_subgroup_basic"
14                              Name 4  "main"
15                              Name 9  "Output"
16                              MemberName 9(Output) 0  "result"
17                              Name 11  ""
18                              Name 15  "gl_PrimitiveID"
19                              Name 18  "gl_SubgroupSize"
20                              Name 20  "gl_SubgroupInvocationID"
21                              Decorate 8 ArrayStride 16
22                              MemberDecorate 9(Output) 0 Offset 0
23                              Decorate 9(Output) Block
24                              Decorate 11 DescriptorSet 0
25                              Decorate 11 Binding 0
26                              Decorate 15(gl_PrimitiveID) BuiltIn PrimitiveId
27                              Decorate 18(gl_SubgroupSize) RelaxedPrecision
28                              Decorate 18(gl_SubgroupSize) BuiltIn SubgroupSize
29                              Decorate 19 RelaxedPrecision
30                              Decorate 20(gl_SubgroupInvocationID) RelaxedPrecision
31                              Decorate 20(gl_SubgroupInvocationID) BuiltIn SubgroupLocalInvocationId
32                              Decorate 21 RelaxedPrecision
33                              Decorate 23 RelaxedPrecision
34               2:             TypeVoid
35               3:             TypeFunction 2
36               6:             TypeInt 32 0
37               7:             TypeVector 6(int) 4
38               8:             TypeRuntimeArray 7(ivec4)
39       9(Output):             TypeStruct 8
40              10:             TypePointer StorageBuffer 9(Output)
41              11:     10(ptr) Variable StorageBuffer
42              12:             TypeInt 32 1
43              13:     12(int) Constant 0
44              14:             TypePointer Input 12(int)
4515(gl_PrimitiveID):     14(ptr) Variable Input
46              17:             TypePointer Input 6(int)
4718(gl_SubgroupSize):     17(ptr) Variable Input
4820(gl_SubgroupInvocationID):     17(ptr) Variable Input
49              22:      6(int) Constant 0
50              24:             TypePointer StorageBuffer 7(ivec4)
51         4(main):           2 Function None 3
52               5:             Label
53              16:     12(int) Load 15(gl_PrimitiveID)
54              19:      6(int) Load 18(gl_SubgroupSize)
55              21:      6(int) Load 20(gl_SubgroupInvocationID)
56              23:    7(ivec4) CompositeConstruct 19 21 22 22
57              25:     24(ptr) AccessChain 11 13 16
58                              Store 25 23
59                              Return
60                              FunctionEnd
61