2021-05-18 10:28:48 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2022-12-01 18:49:09 +00:00
|
|
|
; Bound: 17
|
2021-05-18 10:28:48 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
|
|
|
OpEntryPoint GLCompute %main "main"
|
|
|
|
OpExecutionMode %main LocalSize 1 1 1
|
|
|
|
OpName %func "func"
|
|
|
|
OpName %pointer "pointer"
|
|
|
|
OpName %main "main"
|
2022-12-01 18:49:09 +00:00
|
|
|
OpName %F "F"
|
2021-05-18 10:28:48 +00:00
|
|
|
%int = OpTypeInt 32 1
|
|
|
|
%_ptr_Function_int = OpTypePointer Function %int
|
2022-12-01 18:49:09 +00:00
|
|
|
%1 = OpTypeFunction %int %_ptr_Function_int
|
|
|
|
%void = OpTypeVoid
|
|
|
|
%9 = OpTypeFunction %void
|
|
|
|
%14 = OpConstantNull %int
|
|
|
|
%func = OpFunction %int None %1
|
2021-05-18 10:28:48 +00:00
|
|
|
%pointer = OpFunctionParameter %_ptr_Function_int
|
2022-12-01 18:49:09 +00:00
|
|
|
%6 = OpLabel
|
|
|
|
%8 = OpLoad %int %pointer
|
|
|
|
OpReturnValue %8
|
2021-05-18 10:28:48 +00:00
|
|
|
OpFunctionEnd
|
2022-12-01 18:49:09 +00:00
|
|
|
%main = OpFunction %void None %9
|
2021-05-18 10:28:48 +00:00
|
|
|
%12 = OpLabel
|
2022-12-01 18:49:09 +00:00
|
|
|
%F = OpVariable %_ptr_Function_int Function %14
|
|
|
|
%15 = OpFunctionCall %int %func %F
|
2021-05-18 10:28:48 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|