blob: 66d8394c40b74b6b1ff35f93cbadc092ce0f8259 [file]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 1
; Bound: 58
; 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"
OpMemberName %u_block_std140 3 "inner_col3"
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 16
OpMemberDecorate %u_block_std140 2 Offset 32
OpMemberDecorate %u_block_std140 3 Offset 48
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
%v3float = OpTypeVector %float 3
%u_block_std140 = OpTypeStruct %v3float %v3float %v3float %v3float
%_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140
%1 = OpVariable %_ptr_Uniform_u_block_std140 Uniform
%mat4v3float = OpTypeMatrix %v3float 4
%_ptr_Workgroup_mat4v3float = OpTypePointer Workgroup %mat4v3float
%w = OpVariable %_ptr_Workgroup_mat4v3float 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_v3float = OpTypePointer Uniform %v3float
%uint_0 = OpConstant %uint 0
%uint_3 = OpConstant %uint 3
%_ptr_Workgroup_v3float = OpTypePointer Workgroup %v3float
%_ptr_Uniform_float = OpTypePointer Uniform %float
%_ptr_Workgroup_float = OpTypePointer Workgroup %float
%52 = OpConstantNull %mat4v3float
%54 = 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 %52 None
OpBranch %20
%20 = OpLabel
OpControlBarrier %uint_2 %uint_2 %uint_264
%25 = OpAccessChain %_ptr_Uniform_v3float %1 %uint_0
%28 = OpLoad %v3float %25 None
%29 = OpAccessChain %_ptr_Uniform_v3float %1 %uint_1
%30 = OpLoad %v3float %29 None
%31 = OpAccessChain %_ptr_Uniform_v3float %1 %uint_2
%32 = OpLoad %v3float %31 None
%33 = OpAccessChain %_ptr_Uniform_v3float %1 %uint_3
%35 = OpLoad %v3float %33 None
%36 = OpCompositeConstruct %mat4v3float %28 %30 %32 %35
OpStore %w %36 None
%37 = OpAccessChain %_ptr_Workgroup_v3float %w %uint_1
%39 = OpAccessChain %_ptr_Uniform_v3float %1 %uint_0
%40 = OpLoad %v3float %39 None
OpStore %37 %40 None
%41 = OpAccessChain %_ptr_Workgroup_v3float %w %uint_1
%42 = OpAccessChain %_ptr_Uniform_v3float %1 %uint_0
%43 = OpLoad %v3float %42 None
%44 = OpVectorShuffle %v3float %43 %43 2 0 1
OpStore %41 %44 None
%45 = OpAccessChain %_ptr_Workgroup_v3float %w %uint_0
%46 = OpAccessChain %_ptr_Uniform_v3float %1 %uint_1
%47 = OpAccessChain %_ptr_Uniform_float %46 %uint_0
%49 = OpLoad %float %47 None
%50 = OpAccessChain %_ptr_Workgroup_float %45 %uint_1
OpStore %50 %49 None
OpReturn
OpFunctionEnd
%f = OpFunction %void None %54
%55 = OpLabel
%56 = OpLoad %uint %f_local_invocation_index_Input None
%57 = OpFunctionCall %void %f_inner %56
OpReturn
OpFunctionEnd