Debian Codegraph @

test/diff/diff_files/spec_constant_composite_src.spvasm

raw
1 ;; Tests OpSpecConstantComposite matching.
2 OpCapability Shader
3 %1 = OpExtInstImport "GLSL.std.450"
4 OpMemoryModel Logical GLSL450
5 OpEntryPoint GLCompute %main "main"
6 OpExecutionMode %main LocalSize 1 1 1
7 OpSource GLSL 450
8 OpName %main "main"
9 OpDecorate %7 SpecId 3
10 OpDecorate %8 SpecId 4
11 OpDecorate %gl_WorkGroupSize BuiltIn WorkgroupSize
12 %void = OpTypeVoid
13 %3 = OpTypeFunction %void
14 %uint = OpTypeInt 32 0
15 %7 = OpSpecConstant %uint 1
16 %8 = OpSpecConstant %uint 1
17 %uint_1 = OpConstant %uint 1
18 %v3uint = OpTypeVector %uint 3
19 %gl_WorkGroupSize = OpSpecConstantComposite %v3uint %7 %8 %uint_1
20 %main = OpFunction %void None %3
21 %5 = OpLabel
22 OpReturn
23 OpFunctionEnd