yum-mirror/glslang

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

janharaldUpdate expected result for a test that previously (incorrectly) failed validation.972068c2

main
2.8 KiB59 linesraw
1spv.computeShaderDerivativesNoLayout.comp
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 30
5
6                              Capability Shader
7               1:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint GLCompute 4  "main"
10                              ExecutionMode 4 LocalSize 2 4 1
11                              Source GLSL 450
12                              SourceExtension  "GL_NV_compute_shader_derivatives"
13                              Name 4  "main"
14                              Name 7  "block"
15                              MemberName 7(block) 0  "fDerivativeX"
16                              MemberName 7(block) 1  "fDerivativeY"
17                              MemberName 7(block) 2  "fX"
18                              MemberName 7(block) 3  "fY"
19                              Name 9  ""
20                              Decorate 7(block) BufferBlock
21                              MemberDecorate 7(block) 0 Offset 0
22                              MemberDecorate 7(block) 1 Offset 4
23                              MemberDecorate 7(block) 2 Offset 8
24                              MemberDecorate 7(block) 3 Offset 12
25                              Decorate 9 Binding 1
26                              Decorate 9 DescriptorSet 0
27                              Decorate 29 BuiltIn WorkgroupSize
28               2:             TypeVoid
29               3:             TypeFunction 2
30               6:             TypeFloat 32
31        7(block):             TypeStruct 6(float) 6(float) 6(float) 6(float)
32               8:             TypePointer Uniform 7(block)
33               9:      8(ptr) Variable Uniform
34              10:             TypeInt 32 1
35              11:     10(int) Constant 0
36              12:     10(int) Constant 2
37              13:             TypePointer Uniform 6(float)
38              18:     10(int) Constant 1
39              19:     10(int) Constant 3
40              24:             TypeInt 32 0
41              25:             TypeVector 24(int) 3
42              26:     24(int) Constant 2
43              27:     24(int) Constant 4
44              28:     24(int) Constant 1
45              29:   25(ivec3) ConstantComposite 26 27 28
46         4(main):           2 Function None 3
47               5:             Label
48              14:     13(ptr) AccessChain 9 12
49              15:    6(float) Load 14
50              16:    6(float) DPdx 15
51              17:     13(ptr) AccessChain 9 11
52                              Store 17 16
53              20:     13(ptr) AccessChain 9 19
54              21:    6(float) Load 20
55              22:    6(float) DPdy 21
56              23:     13(ptr) AccessChain 9 18
57                              Store 23 22
58                              Return
59                              FunctionEnd