blob: a8de55dcf72d87e23b29e0a745e9d9bc9b7f05a7 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 29
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
OpName %func_F_X "func_F_X"
OpName %pointer_base "pointer_base"
OpName %pointer_indices "pointer_indices"
OpName %main "main"
OpName %F "F"
OpDecorate %_arr_uint_uint_1 ArrayStride 4
%void = OpTypeVoid
%float = OpTypeFloat 32
%v2float = OpTypeVector %float 2
%mat2v2float = OpTypeMatrix %v2float 2
%_ptr_Function_mat2v2float = OpTypePointer Function %mat2v2float
%uint = OpTypeInt 32 0
%uint_1 = OpConstant %uint 1
%_arr_uint_uint_1 = OpTypeArray %uint %uint_1
%1 = OpTypeFunction %void %_ptr_Function_mat2v2float %_arr_uint_uint_1
%int = OpTypeInt 32 1
%16 = OpConstantNull %int
%_ptr_Function_v2float = OpTypePointer Function %v2float
%20 = OpConstantNull %v2float
%21 = OpTypeFunction %void
%25 = OpConstantNull %mat2v2float
%28 = OpConstantComposite %_arr_uint_uint_1 %uint_1
%func_F_X = OpFunction %void None %1
%pointer_base = OpFunctionParameter %_ptr_Function_mat2v2float
%pointer_indices = OpFunctionParameter %_arr_uint_uint_1
%13 = OpLabel
%17 = OpCompositeExtract %uint %pointer_indices 0
%19 = OpAccessChain %_ptr_Function_v2float %pointer_base %17
OpStore %19 %20
OpReturn
OpFunctionEnd
%main = OpFunction %void None %21
%23 = OpLabel
%F = OpVariable %_ptr_Function_mat2v2float Function %25
%26 = OpFunctionCall %void %func_F_X %F %28
OpReturn
OpFunctionEnd