blob: d4114c4a546a4f430c268a67efb908f7bf4e4f3f [file] [log] [blame]
Corentin Wallezb32c22c2021-07-26 09:12:57 +00001; SPIR-V
2; Version: 1.3
3; Generator: Google Tint Compiler; 0
4; Bound: 17
5; Schema: 0
6 OpCapability Shader
Ben Clayton5c99ed02022-01-05 20:11:00 +00007 %13 = OpExtInstImport "GLSL.std.450"
Corentin Wallezb32c22c2021-07-26 09:12:57 +00008 OpMemoryModel Logical GLSL450
9 OpEntryPoint GLCompute %main "main"
10 OpExecutionMode %main LocalSize 1 1 1
11 OpName %main_1 "main_1"
12 OpName %a "a"
13 OpName %b "b"
14 OpName %main "main"
15 %void = OpTypeVoid
16 %1 = OpTypeFunction %void
17 %float = OpTypeFloat 32
18%_ptr_Function_float = OpTypePointer Function %float
19 %8 = OpConstantNull %float
20 %float_42 = OpConstant %float 42
Corentin Wallezb32c22c2021-07-26 09:12:57 +000021 %main_1 = OpFunction %void None %1
22 %4 = OpLabel
23 %a = OpVariable %_ptr_Function_float Function %8
24 %b = OpVariable %_ptr_Function_float Function %8
25 OpStore %a %float_42
26 %11 = OpLoad %float %a
Ben Clayton5c99ed02022-01-05 20:11:00 +000027 %12 = OpExtInst %float %13 Degrees %11
28 OpStore %b %12
Corentin Wallezb32c22c2021-07-26 09:12:57 +000029 OpReturn
30 OpFunctionEnd
31 %main = OpFunction %void None %1
32 %15 = OpLabel
33 %16 = OpFunctionCall %void %main_1
34 OpReturn
35 OpFunctionEnd