blob: 998e868677cbb5379682421439607cbd5cc9e6c1 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 61
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %f "f" %local_invocation_index_1
OpExecutionMode %f LocalSize 1 1 1
OpName %local_invocation_index_1 "local_invocation_index_1"
OpName %u_block_std140 "u_block_std140"
OpMemberName %u_block_std140 0 "inner_0"
OpMemberName %u_block_std140 1 "inner_1"
OpMemberName %u_block_std140 2 "inner_2"
OpName %u "u"
OpName %w "w"
OpName %load_u_inner "load_u_inner"
OpName %f_inner "f_inner"
OpName %local_invocation_index "local_invocation_index"
OpName %f "f"
OpDecorate %local_invocation_index_1 BuiltIn LocalInvocationIndex
OpDecorate %u_block_std140 Block
OpMemberDecorate %u_block_std140 0 Offset 0
OpMemberDecorate %u_block_std140 1 Offset 8
OpMemberDecorate %u_block_std140 2 Offset 16
OpDecorate %u NonWritable
OpDecorate %u DescriptorSet 0
OpDecorate %u Binding 0
%uint = OpTypeInt 32 0
%_ptr_Input_uint = OpTypePointer Input %uint
%local_invocation_index_1 = OpVariable %_ptr_Input_uint Input
%float = OpTypeFloat 32
%v2float = OpTypeVector %float 2
%u_block_std140 = OpTypeStruct %v2float %v2float %v2float
%_ptr_Uniform_u_block_std140 = OpTypePointer Uniform %u_block_std140
%u = OpVariable %_ptr_Uniform_u_block_std140 Uniform
%mat3v2float = OpTypeMatrix %v2float 3
%_ptr_Workgroup_mat3v2float = OpTypePointer Workgroup %mat3v2float
%w = OpVariable %_ptr_Workgroup_mat3v2float Workgroup
%12 = OpTypeFunction %mat3v2float
%uint_0 = OpConstant %uint 0
%_ptr_Uniform_v2float = OpTypePointer Uniform %v2float
%uint_1 = OpConstant %uint 1
%uint_2 = OpConstant %uint 2
%void = OpTypeVoid
%30 = OpTypeFunction %void %uint
%35 = OpConstantNull %mat3v2float
%uint_264 = OpConstant %uint 264
%int = OpTypeInt 32 1
%int_1 = OpConstant %int 1
%_ptr_Workgroup_v2float = OpTypePointer Workgroup %v2float
%49 = OpConstantNull %int
%_ptr_Workgroup_float = OpTypePointer Workgroup %float
%52 = OpConstantNull %uint
%_ptr_Uniform_float = OpTypePointer Uniform %float
%56 = OpTypeFunction %void
%load_u_inner = OpFunction %mat3v2float None %12
%14 = OpLabel
%19 = OpAccessChain %_ptr_Uniform_v2float %u %uint_0
%20 = OpLoad %v2float %19
%23 = OpAccessChain %_ptr_Uniform_v2float %u %uint_1
%24 = OpLoad %v2float %23
%27 = OpAccessChain %_ptr_Uniform_v2float %u %uint_2
%28 = OpLoad %v2float %27
%29 = OpCompositeConstruct %mat3v2float %20 %24 %28
OpReturnValue %29
OpFunctionEnd
%f_inner = OpFunction %void None %30
%local_invocation_index = OpFunctionParameter %uint
%34 = OpLabel
OpStore %w %35
OpControlBarrier %uint_2 %uint_2 %uint_264
%38 = OpFunctionCall %mat3v2float %load_u_inner
OpStore %w %38
%42 = OpAccessChain %_ptr_Workgroup_v2float %w %int_1
%43 = OpAccessChain %_ptr_Uniform_v2float %u %uint_0
%44 = OpLoad %v2float %43
OpStore %42 %44
%45 = OpAccessChain %_ptr_Workgroup_v2float %w %int_1
%46 = OpAccessChain %_ptr_Uniform_v2float %u %uint_0
%47 = OpLoad %v2float %46
%48 = OpVectorShuffle %v2float %47 %47 1 0
OpStore %45 %48
%51 = OpAccessChain %_ptr_Workgroup_float %w %49 %int_1
%54 = OpAccessChain %_ptr_Uniform_float %u %uint_1 %52
%55 = OpLoad %float %54
OpStore %51 %55
OpReturn
OpFunctionEnd
%f = OpFunction %void None %56
%58 = OpLabel
%60 = OpLoad %uint %local_invocation_index_1
%59 = OpFunctionCall %void %f_inner %60
OpReturn
OpFunctionEnd