Debian Codegraph @

test/diff/diff_files/OpExtInst_in_variables_src.spvasm

raw
1 ;; Tests a diff where the shader has OpExtInst in the debug, decorations and types/variables sections.
2 OpCapability Shader
3 OpExtension "SPV_KHR_non_semantic_info"
4 %1 = OpExtInstImport "GLSL.std.450"
5 %20 = OpExtInstImport "NonSemantic.MadeUp"
6 OpMemoryModel Logical GLSL450
7 OpEntryPoint Fragment %4 "main" %9 %11
8 OpExecutionMode %4 OriginUpperLeft
9 OpSource ESSL 310
10 OpName %4 "main"
11 %21 = OpExtInst %2 %20 123
12 %22 = OpExtInst %2 %20 234
13 OpName %9 "color"
14 OpName %11 "v"
15 OpDecorate %9 RelaxedPrecision
16 OpDecorate %9 Location 0
17 OpDecorate %11 RelaxedPrecision
18 OpDecorate %11 Location 0
19 %23 = OpExtInst %2 %20 345
20 %24 = OpExtInst %2 %20 456
21 OpDecorate %12 RelaxedPrecision
22 OpDecorate %13 RelaxedPrecision
23 OpDecorate %14 RelaxedPrecision
24 %2 = OpTypeVoid
25 %3 = OpTypeFunction %2
26 %6 = OpTypeFloat 32
27 %7 = OpTypeVector %6 4
28 %8 = OpTypePointer Output %7
29 %9 = OpVariable %8 Output
30 %10 = OpTypePointer Input %6
31 %11 = OpVariable %10 Input
32 %25 = OpExtInst %2 %20 567
33 %26 = OpExtInst %2 %20 678
34 %4 = OpFunction %2 None %3
35 %5 = OpLabel
36 %12 = OpLoad %6 %11
37 %13 = OpExtInst %6 %1 Log2 %12
38 %14 = OpCompositeConstruct %7 %13 %13 %13 %13
39 OpStore %9 %14
40 OpReturn
41 OpFunctionEnd