blob: ae08f162a221da12beafb2a851f9151cda16c204 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 16
; 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"
OpName %r "r"
%int = OpTypeInt 32 1
%_ptr_Function_int = OpTypePointer Function %int
%5 = OpTypeFunction %int %_ptr_Function_int
%void = OpTypeVoid
%11 = OpTypeFunction %void
%14 = OpConstantNull %int
%func = OpFunction %int None %5
%pointer_root = OpFunctionParameter %_ptr_Function_int
%6 = OpLabel
%7 = OpAccessChain %_ptr_Function_int %pointer_root
%8 = OpLoad %int %7 None
OpReturnValue %8
OpFunctionEnd
%main = OpFunction %void None %11
%12 = OpLabel
%F = OpVariable %_ptr_Function_int Function %14
%r = OpFunctionCall %int %func %F
OpReturn
OpFunctionEnd