blob: 7427fec70bf86f4a7a1987ffc2af14017f81435d [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 45
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %f "f"
OpExecutionMode %f LocalSize 1 1 1
OpName %SSBO "SSBO"
OpMemberName %SSBO 0 "m"
OpName %strided_arr "strided_arr"
OpMemberName %strided_arr 0 "el"
OpName %ssbo "ssbo"
OpName %arr_to_mat2x2_stride_16 "arr_to_mat2x2_stride_16"
OpName %arr "arr"
OpName %mat2x2_stride_16_to_arr "mat2x2_stride_16_to_arr"
OpName %m "m"
OpName %f_1 "f_1"
OpName %f "f"
OpDecorate %SSBO Block
OpMemberDecorate %SSBO 0 Offset 0
OpMemberDecorate %strided_arr 0 Offset 0
OpDecorate %_arr_strided_arr_uint_2 ArrayStride 16
OpDecorate %ssbo DescriptorSet 0
OpDecorate %ssbo Binding 0
%float = OpTypeFloat 32
%v2float = OpTypeVector %float 2
%strided_arr = OpTypeStruct %v2float
%uint = OpTypeInt 32 0
%uint_2 = OpConstant %uint 2
%_arr_strided_arr_uint_2 = OpTypeArray %strided_arr %uint_2
%SSBO = OpTypeStruct %_arr_strided_arr_uint_2
%_ptr_StorageBuffer_SSBO = OpTypePointer StorageBuffer %SSBO
%ssbo = OpVariable %_ptr_StorageBuffer_SSBO StorageBuffer
%mat2v2float = OpTypeMatrix %v2float 2
%10 = OpTypeFunction %mat2v2float %_arr_strided_arr_uint_2
%15 = OpConstantNull %uint
%uint_1 = OpConstant %uint 1
%22 = OpTypeFunction %_arr_strided_arr_uint_2 %mat2v2float
%void = OpTypeVoid
%31 = OpTypeFunction %void
%uint_0 = OpConstant %uint 0
%_ptr_StorageBuffer__arr_strided_arr_uint_2 = OpTypePointer StorageBuffer %_arr_strided_arr_uint_2
%arr_to_mat2x2_stride_16 = OpFunction %mat2v2float None %10
%arr = OpFunctionParameter %_arr_strided_arr_uint_2
%14 = OpLabel
%16 = OpCompositeExtract %strided_arr %arr 0
%17 = OpCompositeExtract %v2float %16 0
%19 = OpCompositeExtract %strided_arr %arr 1
%20 = OpCompositeExtract %v2float %19 0
%21 = OpCompositeConstruct %mat2v2float %17 %20
OpReturnValue %21
OpFunctionEnd
%mat2x2_stride_16_to_arr = OpFunction %_arr_strided_arr_uint_2 None %22
%m = OpFunctionParameter %mat2v2float
%25 = OpLabel
%26 = OpCompositeExtract %v2float %m 0
%27 = OpCompositeConstruct %strided_arr %26
%28 = OpCompositeExtract %v2float %m 1
%29 = OpCompositeConstruct %strided_arr %28
%30 = OpCompositeConstruct %_arr_strided_arr_uint_2 %27 %29
OpReturnValue %30
OpFunctionEnd
%f_1 = OpFunction %void None %31
%34 = OpLabel
%38 = OpAccessChain %_ptr_StorageBuffer__arr_strided_arr_uint_2 %ssbo %uint_0
%39 = OpLoad %_arr_strided_arr_uint_2 %38
%35 = OpFunctionCall %mat2v2float %arr_to_mat2x2_stride_16 %39
%40 = OpFunctionCall %_arr_strided_arr_uint_2 %mat2x2_stride_16_to_arr %35
%41 = OpAccessChain %_ptr_StorageBuffer__arr_strided_arr_uint_2 %ssbo %uint_0
OpStore %41 %40
OpReturn
OpFunctionEnd
%f = OpFunction %void None %31
%43 = OpLabel
%44 = OpFunctionCall %void %f_1
OpReturn
OpFunctionEnd