yum-mirror/glslang

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

Saqib KhanHandle spirv_literal operands in spirv_instruction with a set (#4454)c97e126b

main
2.1 KiB45 linesraw
1spv.intrinsicsSpirvInstructionSetLiteral.comp
2Validation failed
3// Module Version 10000
4// Generated by (magic number): 8000b
5// Id's are bound by 27
6
7                              Capability Shader
8               1:             ExtInstImport  "GLSL.std.450"
9              20:             ExtInstImport  "OpenCL.std"
10              22:             ExtInstImport  "OpenCL.DebugInfo.100"
11                              MemoryModel Logical GLSL450
12                              EntryPoint GLCompute 4  "main"
13                              ExecutionMode 4 LocalSize 1 1 1
14                              Source GLSL 450
15                              SourceExtension  "GL_EXT_spirv_intrinsics"
16                              Name 4  "main"
17                              Name 9  "v"
18                              Name 15  "data"
19                              Decorate 26 BuiltIn WorkgroupSize
20               2:             TypeVoid
21               3:             TypeFunction 2
22               6:             TypeFloat 32
23               7:             TypeVector 6(float) 2
24               8:             TypePointer Function 7(fvec2)
25              10:             TypeInt 32 0
26              11:     10(int) Constant 0
27              12:     10(int) Constant 16
28              13:             TypeArray 6(float) 12
29              14:             TypePointer Workgroup 13
30        15(data):     14(ptr) Variable Workgroup
31              16:             TypeInt 32 1
32              17:     16(int) Constant 0
33              18:             TypePointer Workgroup 6(float)
34              24:             TypeVector 10(int) 3
35              25:     10(int) Constant 1
36              26:   24(ivec3) ConstantComposite 25 25 25
37         4(main):           2 Function None 3
38               5:             Label
39            9(v):      8(ptr) Variable Function
40              19:     18(ptr) AccessChain 15(data) 17
41              21:    7(fvec2) ExtInst 20(OpenCL.std) 171 11 19 2
42                              Store 9(v) 21
43              23:           2 ExtInst 22(OpenCL.DebugInfo.100) 30 5
44                              Return
45                              FunctionEnd