blob: 361e8785c07c8d651e3ad826652a65b32516851b [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 34
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
OpExecutionMode %unused_entry_point LocalSize 1 1 1
OpName %a "a"
OpName %a_0 "a"
OpMemberName %S 0 "val"
OpName %S "S"
OpName %d "d"
OpName %unused_entry_point "unused_entry_point"
OpDecorate %_arr_v3float_uint_3 ArrayStride 16
OpMemberDecorate %S 0 Offset 0
%void = OpTypeVoid
%3 = OpTypeFunction %void
%int = OpTypeInt 32 1
%v4int = OpTypeVector %int 4
%_ptr_Function_v4int = OpTypePointer Function %v4int
%9 = OpConstantNull %v4int
%_ptr_Function_int = OpTypePointer Function %int
%uint = OpTypeInt 32 0
%uint_0 = OpConstant %uint 0
%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
%_ptr_Function_S = OpTypePointer Function %S
%25 = OpConstantNull %S
%_ptr_Function_v3float = OpTypePointer Function %v3float
%_ptr_Function_float = OpTypePointer Function %float
%uint_1 = OpConstant %uint 1
%float_3 = OpConstant %float 3
%a = OpFunction %void None %3
%4 = OpLabel
%a_0 = OpVariable %_ptr_Function_v4int Function
%d = OpVariable %_ptr_Function_S Function
OpStore %a_0 %9
%10 = OpAccessChain %_ptr_Function_int %a_0 %uint_0
OpStore %10 %int_1 None
%15 = OpAccessChain %_ptr_Function_int %a_0 %uint_2
OpStore %15 %int_2 None
OpStore %d %25
%26 = OpAccessChain %_ptr_Function_v3float %d %uint_0 %int_2
%28 = OpAccessChain %_ptr_Function_float %26 %uint_1
OpStore %28 %float_3 None
OpReturn
OpFunctionEnd
%unused_entry_point = OpFunction %void None %3
%33 = OpLabel
OpReturn
OpFunctionEnd