blob: 3c5bb748f09ea4b0a34a29193de9fda5e25f2112 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 22
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %str "str"
OpMemberName %str 0 "i"
OpName %func_F_i "func_F_i"
OpName %pointer "pointer"
OpName %main "main"
OpName %F "F"
OpMemberDecorate %str 0 Offset 0
%void = OpTypeVoid
%int = OpTypeInt 32 1
%str = OpTypeStruct %int
%_ptr_Function_str = OpTypePointer Function %str
%1 = OpTypeFunction %void %_ptr_Function_str
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Function_int = OpTypePointer Function %int
%int_42 = OpConstant %int 42
%15 = OpTypeFunction %void
%19 = OpConstantNull %str
%func_F_i = OpFunction %void None %1
%pointer = OpFunctionParameter %_ptr_Function_str
%8 = OpLabel
%13 = OpAccessChain %_ptr_Function_int %pointer %uint_0
OpStore %13 %int_42
OpReturn
OpFunctionEnd
%main = OpFunction %void None %15
%17 = OpLabel
%F = OpVariable %_ptr_Function_str Function %19
%20 = OpFunctionCall %void %func_F_i %F
OpReturn
OpFunctionEnd