blob: 2f604c91355b8ef79a068cec13dd5bef5e4df524 [file]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 51
; 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 0 "inner"
OpName %u_block "u_block"
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 0 Offset 0
OpMemberDecorate %u_block 0 ColMajor
OpMemberDecorate %u_block 0 MatrixStride 16
OpDecorate %u_block Block
OpDecorate %1 DescriptorSet 0
OpDecorate %1 Binding 0
OpDecorate %1 NonWritable
OpDecorate %f_local_invocation_index_Input BuiltIn LocalInvocationIndex
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%mat2v4float = OpTypeMatrix %v4float 2
%u_block = OpTypeStruct %mat2v4float
%_ptr_Uniform_u_block = OpTypePointer Uniform %u_block
%1 = OpVariable %_ptr_Uniform_u_block Uniform
%_ptr_Workgroup_mat2v4float = OpTypePointer Workgroup %mat2v4float
%w = OpVariable %_ptr_Workgroup_mat2v4float 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_mat2v4float = OpTypePointer Uniform %mat2v4float
%uint_0 = OpConstant %uint 0
%_ptr_Workgroup_v4float = OpTypePointer Workgroup %v4float
%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
%_ptr_Uniform_float = OpTypePointer Uniform %float
%_ptr_Workgroup_float = OpTypePointer Workgroup %float
%45 = OpConstantNull %mat2v4float
%47 = 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 %45 None
OpBranch %20
%20 = OpLabel
OpControlBarrier %uint_2 %uint_2 %uint_264
%25 = OpAccessChain %_ptr_Uniform_mat2v4float %1 %uint_0
%28 = OpLoad %mat2v4float %25 None
OpStore %w %28 None
%29 = OpAccessChain %_ptr_Workgroup_v4float %w %uint_1
%31 = OpAccessChain %_ptr_Uniform_v4float %1 %uint_0 %uint_0
%33 = OpLoad %v4float %31 None
OpStore %29 %33 None
%34 = OpAccessChain %_ptr_Workgroup_v4float %w %uint_1
%35 = OpAccessChain %_ptr_Uniform_v4float %1 %uint_0 %uint_0
%36 = OpLoad %v4float %35 None
%37 = OpVectorShuffle %v4float %36 %36 1 3 0 2
OpStore %34 %37 None
%38 = OpAccessChain %_ptr_Workgroup_v4float %w %uint_0
%39 = OpAccessChain %_ptr_Uniform_v4float %1 %uint_0 %uint_1
%40 = OpAccessChain %_ptr_Uniform_float %39 %uint_0
%42 = OpLoad %float %40 None
%43 = OpAccessChain %_ptr_Workgroup_float %38 %uint_1
OpStore %43 %42 None
OpReturn
OpFunctionEnd
%f = OpFunction %void None %47
%48 = OpLabel
%49 = OpLoad %uint %f_local_invocation_index_Input None
%50 = OpFunctionCall %void %f_inner %49
OpReturn
OpFunctionEnd