blob: 840f20eb27d6a684b069a602ca536e9314f9bdcb [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 23
; 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
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%str = OpTypeStruct %v4float
%_ptr_Function_str = OpTypePointer Function %str
%1 = OpTypeFunction %v4float %_ptr_Function_str
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Function_v4float = OpTypePointer Function %v4float
%void = OpTypeVoid
%15 = OpTypeFunction %void
%20 = OpConstantNull %str
%func_F_i = OpFunction %v4float None %1
%pointer = OpFunctionParameter %_ptr_Function_str
%8 = OpLabel
%13 = OpAccessChain %_ptr_Function_v4float %pointer %uint_0
%14 = OpLoad %v4float %13
OpReturnValue %14
OpFunctionEnd
%main = OpFunction %void None %15
%18 = OpLabel
%F = OpVariable %_ptr_Function_str Function %20
%21 = OpFunctionCall %v4float %func_F_i %F
OpReturn
OpFunctionEnd