blob: 8734f8bb77c9ef6b8917461eba43c22b96f8002d [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 20
; 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 %T 0 "o"
OpMemberName %T 1 "p"
OpName %T "T"
OpMemberName %S 1 "n"
OpName %S "S"
OpName %a "a"
OpName %unused_entry_point "unused_entry_point"
OpMemberDecorate %S 0 Offset 0
OpMemberDecorate %T 0 Offset 0
OpMemberDecorate %T 1 Offset 4
OpMemberDecorate %S 1 Offset 4
%uint = OpTypeInt 32 0
%3 = OpTypeFunction %uint
%int = OpTypeInt 32 1
%float = OpTypeFloat 32
%T = OpTypeStruct %float %uint
%S = OpTypeStruct %int %T
%_ptr_Function_S = OpTypePointer Function %S
%11 = OpConstantNull %S
%_ptr_Function_uint = OpTypePointer Function %uint
%uint_1 = OpConstant %uint 1
%void = OpTypeVoid
%18 = 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 %uint_1
%15 = OpLoad %uint %12 None
OpReturnValue %15
OpFunctionEnd
%unused_entry_point = OpFunction %void None %18
%19 = OpLabel
OpReturn
OpFunctionEnd