blob: 0c55fa5d6f42c01ad30758bfca75c986d5680b29 [file]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 55
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %f "f" %f_local_invocation_index_Input
OpExecutionMode %f LocalSize 1 1 1
OpMemberName %u_block_std140 0 "inner_col0"
OpMemberName %u_block_std140 1 "inner_col1"
OpMemberName %u_block_std140 2 "inner_col2"
OpName %u_block_std140 "u_block_std140"
OpName %w "w"
OpName %f_local_invocation_index_Input "f_local_invocation_index_Input"
OpName %f_inner "f_inner"
OpName %tint_local_index "tint_local_index"
OpName %f "f"
OpMemberDecorate %u_block_std140 0 Offset 0
OpMemberDecorate %u_block_std140 1 Offset 8
OpMemberDecorate %u_block_std140 2 Offset 16
OpDecorate %u_block_std140 Block
OpDecorate %1 DescriptorSet 0
OpDecorate %1 Binding 0
OpDecorate %1 NonWritable
OpDecorate %f_local_invocation_index_Input BuiltIn LocalInvocationIndex
%float = OpTypeFloat 32
%v2float = OpTypeVector %float 2
%u_block_std140 = OpTypeStruct %v2float %v2float %v2float
%_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140
%1 = OpVariable %_ptr_Uniform_u_block_std140 Uniform
%mat3v2float = OpTypeMatrix %v2float 3
%_ptr_Workgroup_mat3v2float = OpTypePointer Workgroup %mat3v2float
%w = OpVariable %_ptr_Workgroup_mat3v2float Workgroup
%uint = OpTypeInt 32 0
%_ptr_Input_uint = OpTypePointer Input %uint
%f_local_invocation_index_Input = OpVariable %_ptr_Input_uint Input
%void = OpTypeVoid
%15 = OpTypeFunction %void %uint
%uint_1 = OpConstant %uint 1
%bool = OpTypeBool
%uint_2 = OpConstant %uint 2
%uint_264 = OpConstant %uint 264
%_ptr_Uniform_v2float = OpTypePointer Uniform %v2float
%uint_0 = OpConstant %uint 0
%_ptr_Workgroup_v2float = OpTypePointer Workgroup %v2float
%_ptr_Uniform_float = OpTypePointer Uniform %float
%_ptr_Workgroup_float = OpTypePointer Workgroup %float
%49 = OpConstantNull %mat3v2float
%51 = OpTypeFunction %void
%f_inner = OpFunction %void None %15
%tint_local_index = OpFunctionParameter %uint
%16 = OpLabel
%17 = OpULessThan %bool %tint_local_index %uint_1
OpSelectionMerge %20 None
OpBranchConditional %17 %21 %20
%21 = OpLabel
OpStore %w %49 None
OpBranch %20
%20 = OpLabel
OpControlBarrier %uint_2 %uint_2 %uint_264
%25 = OpAccessChain %_ptr_Uniform_v2float %1 %uint_0
%28 = OpLoad %v2float %25 None
%29 = OpAccessChain %_ptr_Uniform_v2float %1 %uint_1
%30 = OpLoad %v2float %29 None
%31 = OpAccessChain %_ptr_Uniform_v2float %1 %uint_2
%32 = OpLoad %v2float %31 None
%33 = OpCompositeConstruct %mat3v2float %28 %30 %32
OpStore %w %33 None
%34 = OpAccessChain %_ptr_Workgroup_v2float %w %uint_1
%36 = OpAccessChain %_ptr_Uniform_v2float %1 %uint_0
%37 = OpLoad %v2float %36 None
OpStore %34 %37 None
%38 = OpAccessChain %_ptr_Workgroup_v2float %w %uint_1
%39 = OpAccessChain %_ptr_Uniform_v2float %1 %uint_0
%40 = OpLoad %v2float %39 None
%41 = OpVectorShuffle %v2float %40 %40 1 0
OpStore %38 %41 None
%42 = OpAccessChain %_ptr_Workgroup_v2float %w %uint_0
%43 = OpAccessChain %_ptr_Uniform_v2float %1 %uint_1
%44 = OpAccessChain %_ptr_Uniform_float %43 %uint_0
%46 = OpLoad %float %44 None
%47 = OpAccessChain %_ptr_Workgroup_float %42 %uint_1
OpStore %47 %46 None
OpReturn
OpFunctionEnd
%f = OpFunction %void None %51
%52 = OpLabel
%53 = OpLoad %uint %f_local_invocation_index_Input None
%54 = OpFunctionCall %void %f_inner %53
OpReturn
OpFunctionEnd