blob: 3cb97ec702ed2586673c9c419a5630144080a526 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 27
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %func "func"
OpMemberName %str 0 "i"
OpName %str "str"
OpName %pointer_root "pointer_root"
OpName %pointer_indices "pointer_indices"
OpName %main "main"
OpName %F "F"
OpName %r "r"
%int = OpTypeInt 32 1
%str = OpTypeStruct %int
%uint = OpTypeInt 32 0
%uint_4 = OpConstant %uint 4
%_arr_str_uint_4 = OpTypeArray %str %uint_4
%_ptr_Function__arr_str_uint_4 = OpTypePointer Function %_arr_str_uint_4
%uint_1 = OpConstant %uint 1
%_arr_uint_uint_1 = OpTypeArray %uint %uint_1
%12 = OpTypeFunction %str %_ptr_Function__arr_str_uint_4 %_arr_uint_uint_1
%_ptr_Function_str = OpTypePointer Function %str
%void = OpTypeVoid
%20 = OpTypeFunction %void
%23 = OpConstantNull %_arr_str_uint_4
%uint_2 = OpConstant %uint 2
%func = OpFunction %str None %12
%pointer_root = OpFunctionParameter %_ptr_Function__arr_str_uint_4
%pointer_indices = OpFunctionParameter %_arr_uint_uint_1
%13 = OpLabel
%14 = OpCompositeExtract %uint %pointer_indices 0
%15 = OpAccessChain %_ptr_Function_str %pointer_root %14
%17 = OpLoad %str %15 None
OpReturnValue %17
OpFunctionEnd
%main = OpFunction %void None %20
%21 = OpLabel
%F = OpVariable %_ptr_Function__arr_str_uint_4 Function %23
%24 = OpCompositeConstruct %_arr_uint_uint_1 %uint_2
%r = OpFunctionCall %str %func %F %24
OpReturn
OpFunctionEnd