blob: 7fe488e665b3783b62f6b3237deb4e7d28d07990 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 32
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
OpExecutionMode %unused_entry_point LocalSize 1 1 1
OpName %unused_entry_point "unused_entry_point"
OpName %a "a"
OpName %a_1 "a_1"
OpName %S "S"
OpMemberName %S 0 "val"
OpName %d "d"
OpMemberDecorate %S 0 Offset 0
OpDecorate %_arr_v3float_uint_3 ArrayStride 16
%void = OpTypeVoid
%1 = OpTypeFunction %void
%int = OpTypeInt 32 1
%v4int = OpTypeVector %int 4
%9 = OpConstantNull %v4int
%_ptr_Function_v4int = OpTypePointer Function %v4int
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%_ptr_Function_int = OpTypePointer Function %int
%int_1 = OpConstant %int 1
%uint_2 = OpConstant %uint 2
%int_2 = OpConstant %int 2
%float = OpTypeFloat 32
%v3float = OpTypeVector %float 3
%uint_3 = OpConstant %uint 3
%_arr_v3float_uint_3 = OpTypeArray %v3float %uint_3
%S = OpTypeStruct %_arr_v3float_uint_3
%25 = OpConstantNull %S
%_ptr_Function_S = OpTypePointer Function %S
%uint_1 = OpConstant %uint 1
%_ptr_Function_float = OpTypePointer Function %float
%float_3 = OpConstant %float 3
%unused_entry_point = OpFunction %void None %1
%4 = OpLabel
OpReturn
OpFunctionEnd
%a = OpFunction %void None %1
%6 = OpLabel
%a_1 = OpVariable %_ptr_Function_v4int Function %9
%d = OpVariable %_ptr_Function_S Function %25
OpStore %a_1 %9
%15 = OpAccessChain %_ptr_Function_int %a_1 %uint_0
OpStore %15 %int_1
%18 = OpAccessChain %_ptr_Function_int %a_1 %uint_2
OpStore %18 %int_2
OpStore %d %25
%30 = OpAccessChain %_ptr_Function_float %d %uint_0 %int_2 %uint_1
OpStore %30 %float_3
OpReturn
OpFunctionEnd