blob: 25664f2f3008094c1dc6997f8e87f0038c3decb0 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; 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 %v "v"
OpName %foo "foo"
OpName %p_indices "p_indices"
OpName %bar "bar"
OpName %unused_entry_point "unused_entry_point"
OpDecorate %_arr_int_uint_4 ArrayStride 4
OpDecorate %_arr_uint_uint_1 ArrayStride 4
%int = OpTypeInt 32 1
%uint = OpTypeInt 32 0
%uint_4 = OpConstant %uint 4
%_arr_int_uint_4 = OpTypeArray %int %uint_4
%_ptr_Workgroup__arr_int_uint_4 = OpTypePointer Workgroup %_arr_int_uint_4
%v = OpVariable %_ptr_Workgroup__arr_int_uint_4 Workgroup
%uint_1 = OpConstant %uint 1
%_arr_uint_uint_1 = OpTypeArray %uint %uint_1
%11 = OpTypeFunction %int %_arr_uint_uint_1
%_ptr_Workgroup_int = OpTypePointer Workgroup %int
%void = OpTypeVoid
%uint_2 = OpConstant %uint 2
%uint_264 = OpConstant %uint 264
%23 = OpTypeFunction %int
%int_0 = OpConstant %int 0
%30 = OpTypeFunction %void
%foo = OpFunction %int None %11
%p_indices = OpFunctionParameter %_arr_uint_uint_1
%12 = OpLabel
%13 = OpCompositeExtract %uint %p_indices 0
%14 = OpAccessChain %_ptr_Workgroup_int %v %13
OpControlBarrier %uint_2 %uint_2 %uint_264
%20 = OpLoad %int %14 None
OpControlBarrier %uint_2 %uint_2 %uint_264
OpReturnValue %20
OpFunctionEnd
%bar = OpFunction %int None %23
%24 = OpLabel
%25 = OpBitcast %uint %int_0
%27 = OpCompositeConstruct %_arr_uint_uint_1 %25
%28 = OpFunctionCall %int %foo %27
OpReturnValue %28
OpFunctionEnd
%unused_entry_point = OpFunction %void None %30
%31 = OpLabel
OpReturn
OpFunctionEnd