blob: d7608fa74052546ad034e5bdb1f30e5c632cfd88 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 21
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
OpExecutionMode %unused_entry_point LocalSize 1 1 1
OpName %f "f"
OpMemberName %S 0 "m"
OpMemberName %S 1 "n"
OpName %S "S"
OpName %a "a"
OpName %unused_entry_point "unused_entry_point"
OpMemberDecorate %S 0 Offset 0
OpDecorate %_arr_uint_uint_4 ArrayStride 4
OpMemberDecorate %S 1 Offset 4
%uint = OpTypeInt 32 0
%3 = OpTypeFunction %uint
%int = OpTypeInt 32 1
%uint_4 = OpConstant %uint 4
%_arr_uint_uint_4 = OpTypeArray %uint %uint_4
%S = OpTypeStruct %int %_arr_uint_uint_4
%_ptr_Function_S = OpTypePointer Function %S
%11 = OpConstantNull %S
%_ptr_Function_uint = OpTypePointer Function %uint
%uint_1 = OpConstant %uint 1
%int_2 = OpConstant %int 2
%void = OpTypeVoid
%19 = OpTypeFunction %void
%f = OpFunction %uint None %3
%4 = OpLabel
%a = OpVariable %_ptr_Function_S Function
OpStore %a %11
%12 = OpAccessChain %_ptr_Function_uint %a %uint_1 %int_2
%16 = OpLoad %uint %12 None
OpReturnValue %16
OpFunctionEnd
%unused_entry_point = OpFunction %void None %19
%20 = OpLabel
OpReturn
OpFunctionEnd