blob: 5868f994f2021b1ad4a8f7717ac4a74e5a4402c8 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 15
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %func "func"
OpName %pointer_root "pointer_root"
OpName %main "main"
OpName %F "F"
%void = OpTypeVoid
%int = OpTypeInt 32 1
%_ptr_Function_int = OpTypePointer Function %int
%6 = OpTypeFunction %void %_ptr_Function_int
%int_42 = OpConstant %int 42
%10 = OpTypeFunction %void
%13 = OpConstantNull %int
%func = OpFunction %void None %6
%pointer_root = OpFunctionParameter %_ptr_Function_int
%7 = OpLabel
OpStore %pointer_root %int_42 None
OpReturn
OpFunctionEnd
%main = OpFunction %void None %10
%11 = OpLabel
%F = OpVariable %_ptr_Function_int Function %13
%14 = OpFunctionCall %void %func %F
OpReturn
OpFunctionEnd