blob: 7ed320ba2315da9ab4e4ecad56aa64e3c4ce1585 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 24
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %str "str"
OpMemberName %str 0 "arr"
OpName %func_F_arr "func_F_arr"
OpName %pointer "pointer"
OpName %main "main"
OpName %F "F"
OpDecorate %_arr_int_uint_4 ArrayStride 4
OpMemberDecorate %str 0 Offset 0
%int = OpTypeInt 32 1
%uint = OpTypeInt 32 0
%uint_4 = OpConstant %uint 4
%_arr_int_uint_4 = OpTypeArray %int %uint_4
%str = OpTypeStruct %_arr_int_uint_4
%_ptr_Function_str = OpTypePointer Function %str
%1 = OpTypeFunction %_arr_int_uint_4 %_ptr_Function_str
%uint_0 = OpConstant %uint 0
%_ptr_Function__arr_int_uint_4 = OpTypePointer Function %_arr_int_uint_4
%void = OpTypeVoid
%16 = OpTypeFunction %void
%21 = OpConstantNull %str
%func_F_arr = OpFunction %_arr_int_uint_4 None %1
%pointer = OpFunctionParameter %_ptr_Function_str
%10 = OpLabel
%14 = OpAccessChain %_ptr_Function__arr_int_uint_4 %pointer %uint_0
%15 = OpLoad %_arr_int_uint_4 %14
OpReturnValue %15
OpFunctionEnd
%main = OpFunction %void None %16
%19 = OpLabel
%F = OpVariable %_ptr_Function_str Function %21
%22 = OpFunctionCall %_arr_int_uint_4 %func_F_arr %F
OpReturn
OpFunctionEnd