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
|
|
|
%void = OpTypeVoid
|
|
|
|
%int = OpTypeInt 32 1
|
|
|
|
%_ptr_Function_int = OpTypePointer Function %int
|
2022-12-01 18:49:09 +00:00
|
|
|
%1 = OpTypeFunction %void %_ptr_Function_int
|
|
|
|
%int_42 = OpConstant %int 42
|
2021-05-18 10:28:48 +00:00
|
|
|
%10 = OpTypeFunction %void
|
2022-12-01 18:49:09 +00:00
|
|
|
%14 = OpConstantNull %int
|
2021-05-18 10:28:48 +00:00
|
|
|
%func = OpFunction %void None %1
|
|
|
|
%pointer = OpFunctionParameter %_ptr_Function_int
|
2022-12-01 18:49:09 +00:00
|
|
|
%7 = OpLabel
|
|
|
|
OpStore %pointer %int_42
|
2021-05-18 10:28:48 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
|
|
|
%main = OpFunction %void None %10
|
|
|
|
%12 = OpLabel
|
2022-12-01 18:49:09 +00:00
|
|
|
%F = OpVariable %_ptr_Function_int Function %14
|
|
|
|
%15 = OpFunctionCall %void %func %F
|
2021-05-18 10:28:48 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|