yum-mirror/glslang

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

janharaldAdding support for GL_KHR_compute_shader_derivatives91bfd96a

main
3.7 KiB74 linesraw
1spv.khrComputeShaderDerivatives.task
2// Module Version 10400
3// Generated by (magic number): 8000b
4// Id's are bound by 38
5
6                              Capability MeshShadingEXT
7                              Capability ComputeDerivativeGroupLinearKHR
8                              Extension  "SPV_EXT_mesh_shader"
9                              Extension  "SPV_KHR_compute_shader_derivatives"
10               1:             ExtInstImport  "GLSL.std.450"
11                              MemoryModel Logical GLSL450
12                              EntryPoint TaskEXT 4  "main" 11 25
13                              ExecutionMode 4 LocalSize 4 1 1
14                              ExecutionMode 4 DerivativeGroupLinearKHR
15                              Source GLSL 450
16                              SourceExtension  "GL_EXT_mesh_shader"
17                              SourceExtension  "GL_KHR_compute_shader_derivatives"
18                              Name 4  "main"
19                              Name 8  "value"
20                              Name 11  "gl_LocalInvocationIndex"
21                              Name 14  "localDx"
22                              Name 23  "Output"
23                              MemberName 23(Output) 0  "dx"
24                              Name 25  "outData"
25                              Decorate 11(gl_LocalInvocationIndex) BuiltIn LocalInvocationIndex
26                              Decorate 23(Output) Block
27                              MemberDecorate 23(Output) 0 Offset 0
28                              Decorate 25(outData) Binding 0
29                              Decorate 25(outData) DescriptorSet 0
30                              Decorate 37 BuiltIn WorkgroupSize
31               2:             TypeVoid
32               3:             TypeFunction 2
33               6:             TypeFloat 32
34               7:             TypePointer Function 6(float)
35               9:             TypeInt 32 0
36              10:             TypePointer Input 9(int)
3711(gl_LocalInvocationIndex):     10(ptr) Variable Input
38              18:      9(int) Constant 0
39              19:             TypeBool
40      23(Output):             TypeStruct 6(float)
41              24:             TypePointer StorageBuffer 23(Output)
42     25(outData):     24(ptr) Variable StorageBuffer
43              26:             TypeInt 32 1
44              27:     26(int) Constant 0
45              29:             TypePointer StorageBuffer 6(float)
46              31:      9(int) Constant 2
47              32:      9(int) Constant 264
48              33:      9(int) Constant 1
49              35:             TypeVector 9(int) 3
50              36:      9(int) Constant 4
51              37:   35(ivec3) ConstantComposite 36 33 33
52         4(main):           2 Function None 3
53               5:             Label
54        8(value):      7(ptr) Variable Function
55     14(localDx):      7(ptr) Variable Function
56              12:      9(int) Load 11(gl_LocalInvocationIndex)
57              13:    6(float) ConvertUToF 12
58                              Store 8(value) 13
59              15:    6(float) Load 8(value)
60              16:    6(float) DPdx 15
61                              Store 14(localDx) 16
62              17:      9(int) Load 11(gl_LocalInvocationIndex)
63              20:    19(bool) IEqual 17 18
64                              SelectionMerge 22 None
65                              BranchConditional 20 21 22
66              21:               Label
67              28:    6(float)   Load 14(localDx)
68              30:     29(ptr)   AccessChain 25(outData) 27
69                                Store 30 28
70                                Branch 22
71              22:             Label
72                              ControlBarrier 31 31 32
73                              EmitMeshTasksEXT 33 33 33
74                              FunctionEnd