2021-07-27 08:17:29 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2022-11-02 02:25:38 +00:00
|
|
|
; Bound: 46
|
2021-07-27 08:17:29 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
|
|
|
OpEntryPoint GLCompute %f "f"
|
|
|
|
OpExecutionMode %f LocalSize 1 1 1
|
2022-11-02 02:25:38 +00:00
|
|
|
OpName %ssbo_block "ssbo_block"
|
|
|
|
OpMemberName %ssbo_block 0 "inner"
|
2021-07-27 08:17:29 +00:00
|
|
|
OpName %SSBO "SSBO"
|
|
|
|
OpMemberName %SSBO 0 "m"
|
2022-02-04 15:39:34 +00:00
|
|
|
OpName %strided_arr "strided_arr"
|
|
|
|
OpMemberName %strided_arr 0 "el"
|
2021-07-27 08:17:29 +00:00
|
|
|
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"
|
2022-02-17 20:43:19 +00:00
|
|
|
OpName %m "m"
|
2021-07-27 08:17:29 +00:00
|
|
|
OpName %f_1 "f_1"
|
|
|
|
OpName %f "f"
|
2022-11-02 02:25:38 +00:00
|
|
|
OpDecorate %ssbo_block Block
|
|
|
|
OpMemberDecorate %ssbo_block 0 Offset 0
|
2021-07-27 08:17:29 +00:00
|
|
|
OpMemberDecorate %SSBO 0 Offset 0
|
2022-02-04 15:39:34 +00:00
|
|
|
OpMemberDecorate %strided_arr 0 Offset 0
|
|
|
|
OpDecorate %_arr_strided_arr_uint_2 ArrayStride 16
|
2021-07-27 08:17:29 +00:00
|
|
|
OpDecorate %ssbo DescriptorSet 0
|
|
|
|
OpDecorate %ssbo Binding 0
|
|
|
|
%float = OpTypeFloat 32
|
|
|
|
%v2float = OpTypeVector %float 2
|
2022-02-04 15:39:34 +00:00
|
|
|
%strided_arr = OpTypeStruct %v2float
|
2021-07-27 08:17:29 +00:00
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%uint_2 = OpConstant %uint 2
|
2022-02-04 15:39:34 +00:00
|
|
|
%_arr_strided_arr_uint_2 = OpTypeArray %strided_arr %uint_2
|
|
|
|
%SSBO = OpTypeStruct %_arr_strided_arr_uint_2
|
2022-11-02 02:25:38 +00:00
|
|
|
%ssbo_block = OpTypeStruct %SSBO
|
|
|
|
%_ptr_StorageBuffer_ssbo_block = OpTypePointer StorageBuffer %ssbo_block
|
|
|
|
%ssbo = OpVariable %_ptr_StorageBuffer_ssbo_block StorageBuffer
|
2021-07-27 08:17:29 +00:00
|
|
|
%mat2v2float = OpTypeMatrix %v2float 2
|
2022-11-02 02:25:38 +00:00
|
|
|
%11 = OpTypeFunction %mat2v2float %_arr_strided_arr_uint_2
|
|
|
|
%16 = OpConstantNull %uint
|
2021-07-27 08:17:29 +00:00
|
|
|
%uint_1 = OpConstant %uint 1
|
2022-11-02 02:25:38 +00:00
|
|
|
%23 = OpTypeFunction %_arr_strided_arr_uint_2 %mat2v2float
|
2021-07-27 08:17:29 +00:00
|
|
|
%void = OpTypeVoid
|
2022-11-02 02:25:38 +00:00
|
|
|
%32 = OpTypeFunction %void
|
2022-06-01 15:57:22 +00:00
|
|
|
%uint_0 = OpConstant %uint 0
|
2022-02-04 15:39:34 +00:00
|
|
|
%_ptr_StorageBuffer__arr_strided_arr_uint_2 = OpTypePointer StorageBuffer %_arr_strided_arr_uint_2
|
2022-11-02 02:25:38 +00:00
|
|
|
%arr_to_mat2x2_stride_16 = OpFunction %mat2v2float None %11
|
2022-02-04 15:39:34 +00:00
|
|
|
%arr = OpFunctionParameter %_arr_strided_arr_uint_2
|
2022-11-02 02:25:38 +00:00
|
|
|
%15 = OpLabel
|
|
|
|
%17 = OpCompositeExtract %strided_arr %arr 0
|
|
|
|
%18 = OpCompositeExtract %v2float %17 0
|
|
|
|
%20 = OpCompositeExtract %strided_arr %arr 1
|
|
|
|
%21 = OpCompositeExtract %v2float %20 0
|
|
|
|
%22 = OpCompositeConstruct %mat2v2float %18 %21
|
|
|
|
OpReturnValue %22
|
2021-07-27 08:17:29 +00:00
|
|
|
OpFunctionEnd
|
2022-11-02 02:25:38 +00:00
|
|
|
%mat2x2_stride_16_to_arr = OpFunction %_arr_strided_arr_uint_2 None %23
|
2022-02-17 20:43:19 +00:00
|
|
|
%m = OpFunctionParameter %mat2v2float
|
2022-11-02 02:25:38 +00:00
|
|
|
%26 = OpLabel
|
|
|
|
%27 = OpCompositeExtract %v2float %m 0
|
|
|
|
%28 = OpCompositeConstruct %strided_arr %27
|
|
|
|
%29 = OpCompositeExtract %v2float %m 1
|
|
|
|
%30 = OpCompositeConstruct %strided_arr %29
|
|
|
|
%31 = OpCompositeConstruct %_arr_strided_arr_uint_2 %28 %30
|
|
|
|
OpReturnValue %31
|
2021-07-27 08:17:29 +00:00
|
|
|
OpFunctionEnd
|
2022-11-02 02:25:38 +00:00
|
|
|
%f_1 = OpFunction %void None %32
|
|
|
|
%35 = OpLabel
|
|
|
|
%39 = OpAccessChain %_ptr_StorageBuffer__arr_strided_arr_uint_2 %ssbo %uint_0 %uint_0
|
|
|
|
%40 = OpLoad %_arr_strided_arr_uint_2 %39
|
|
|
|
%36 = OpFunctionCall %mat2v2float %arr_to_mat2x2_stride_16 %40
|
|
|
|
%41 = OpFunctionCall %_arr_strided_arr_uint_2 %mat2x2_stride_16_to_arr %36
|
|
|
|
%42 = OpAccessChain %_ptr_StorageBuffer__arr_strided_arr_uint_2 %ssbo %uint_0 %uint_0
|
|
|
|
OpStore %42 %41
|
2021-07-27 08:17:29 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2022-11-02 02:25:38 +00:00
|
|
|
%f = OpFunction %void None %32
|
|
|
|
%44 = OpLabel
|
|
|
|
%45 = OpFunctionCall %void %f_1
|
2021-07-27 08:17:29 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|