blob: f5ee8018244119962c52358929d74625fbe85345 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 44
; 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 %mat "mat"
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
%uint_0 = OpConstant %uint 0
%uint_1 = OpConstant %uint 1
%22 = OpTypeFunction %_arr_strided_arr_uint_2 %mat2v2float
%void = OpTypeVoid
%31 = OpTypeFunction %void
%_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
%mat = OpFunctionParameter %mat2v2float
%25 = OpLabel
%26 = OpCompositeExtract %v2float %mat 0
%27 = OpCompositeConstruct %strided_arr %26
%28 = OpCompositeExtract %v2float %mat 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
%37 = OpAccessChain %_ptr_StorageBuffer__arr_strided_arr_uint_2 %ssbo %uint_0
%38 = OpLoad %_arr_strided_arr_uint_2 %37
%35 = OpFunctionCall %mat2v2float %arr_to_mat2x2_stride_16 %38
%39 = OpAccessChain %_ptr_StorageBuffer__arr_strided_arr_uint_2 %ssbo %uint_0
%40 = OpFunctionCall %_arr_strided_arr_uint_2 %mat2x2_stride_16_to_arr %35
OpStore %39 %40
OpReturn
OpFunctionEnd
%f = OpFunction %void None %31
%42 = OpLabel
%43 = OpFunctionCall %void %f_1
OpReturn
OpFunctionEnd