2021-06-02 17:23:03 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2022-09-02 19:19:10 +00:00
|
|
|
; Bound: 66
|
2021-06-02 17:23:03 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
|
|
|
OpEntryPoint GLCompute %unused_entry_point "unused_entry_point"
|
|
|
|
OpExecutionMode %unused_entry_point LocalSize 1 1 1
|
|
|
|
OpName %src_private "src_private"
|
|
|
|
OpName %src_workgroup "src_workgroup"
|
2022-09-02 19:19:10 +00:00
|
|
|
OpName %src_uniform_block "src_uniform_block"
|
|
|
|
OpMemberName %src_uniform_block 0 "inner"
|
2021-06-02 17:23:03 +00:00
|
|
|
OpName %S "S"
|
|
|
|
OpMemberName %S 0 "arr"
|
|
|
|
OpName %src_uniform "src_uniform"
|
|
|
|
OpName %src_storage "src_storage"
|
|
|
|
OpName %dst "dst"
|
|
|
|
OpName %dst_nested "dst_nested"
|
|
|
|
OpName %unused_entry_point "unused_entry_point"
|
|
|
|
OpName %ret_arr "ret_arr"
|
|
|
|
OpName %ret_struct_arr "ret_struct_arr"
|
|
|
|
OpName %foo "foo"
|
|
|
|
OpName %src_param "src_param"
|
|
|
|
OpName %src_function "src_function"
|
|
|
|
OpName %src_nested "src_nested"
|
2022-01-20 22:11:07 +00:00
|
|
|
OpDecorate %_arr_v4int_uint_4 ArrayStride 16
|
2022-09-02 19:19:10 +00:00
|
|
|
OpDecorate %src_uniform_block Block
|
|
|
|
OpMemberDecorate %src_uniform_block 0 Offset 0
|
2021-06-02 17:23:03 +00:00
|
|
|
OpMemberDecorate %S 0 Offset 0
|
2021-06-04 22:17:37 +00:00
|
|
|
OpDecorate %src_uniform NonWritable
|
2021-06-02 17:23:03 +00:00
|
|
|
OpDecorate %src_uniform DescriptorSet 0
|
|
|
|
OpDecorate %src_uniform Binding 0
|
|
|
|
OpDecorate %src_storage DescriptorSet 0
|
|
|
|
OpDecorate %src_storage Binding 1
|
|
|
|
OpDecorate %_arr_int_uint_2 ArrayStride 4
|
|
|
|
OpDecorate %_arr__arr_int_uint_2_uint_3 ArrayStride 8
|
|
|
|
OpDecorate %_arr__arr__arr_int_uint_2_uint_3_uint_4 ArrayStride 24
|
|
|
|
%int = OpTypeInt 32 1
|
2022-01-20 22:11:07 +00:00
|
|
|
%v4int = OpTypeVector %int 4
|
2021-06-02 17:23:03 +00:00
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%uint_4 = OpConstant %uint 4
|
2022-01-20 22:11:07 +00:00
|
|
|
%_arr_v4int_uint_4 = OpTypeArray %v4int %uint_4
|
|
|
|
%_ptr_Private__arr_v4int_uint_4 = OpTypePointer Private %_arr_v4int_uint_4
|
|
|
|
%8 = OpConstantNull %_arr_v4int_uint_4
|
|
|
|
%src_private = OpVariable %_ptr_Private__arr_v4int_uint_4 Private %8
|
|
|
|
%_ptr_Workgroup__arr_v4int_uint_4 = OpTypePointer Workgroup %_arr_v4int_uint_4
|
|
|
|
%src_workgroup = OpVariable %_ptr_Workgroup__arr_v4int_uint_4 Workgroup
|
|
|
|
%S = OpTypeStruct %_arr_v4int_uint_4
|
2022-09-02 19:19:10 +00:00
|
|
|
%src_uniform_block = OpTypeStruct %S
|
|
|
|
%_ptr_Uniform_src_uniform_block = OpTypePointer Uniform %src_uniform_block
|
|
|
|
%src_uniform = OpVariable %_ptr_Uniform_src_uniform_block Uniform
|
|
|
|
%_ptr_StorageBuffer_src_uniform_block = OpTypePointer StorageBuffer %src_uniform_block
|
|
|
|
%src_storage = OpVariable %_ptr_StorageBuffer_src_uniform_block StorageBuffer
|
2022-01-20 22:11:07 +00:00
|
|
|
%dst = OpVariable %_ptr_Private__arr_v4int_uint_4 Private %8
|
2021-06-02 17:23:03 +00:00
|
|
|
%uint_2 = OpConstant %uint 2
|
|
|
|
%_arr_int_uint_2 = OpTypeArray %int %uint_2
|
|
|
|
%uint_3 = OpConstant %uint 3
|
|
|
|
%_arr__arr_int_uint_2_uint_3 = OpTypeArray %_arr_int_uint_2 %uint_3
|
|
|
|
%_arr__arr__arr_int_uint_2_uint_3_uint_4 = OpTypeArray %_arr__arr_int_uint_2_uint_3 %uint_4
|
|
|
|
%_ptr_Private__arr__arr__arr_int_uint_2_uint_3_uint_4 = OpTypePointer Private %_arr__arr__arr_int_uint_2_uint_3_uint_4
|
2022-09-02 19:19:10 +00:00
|
|
|
%25 = OpConstantNull %_arr__arr__arr_int_uint_2_uint_3_uint_4
|
|
|
|
%dst_nested = OpVariable %_ptr_Private__arr__arr__arr_int_uint_2_uint_3_uint_4 Private %25
|
2021-06-02 17:23:03 +00:00
|
|
|
%void = OpTypeVoid
|
2022-09-02 19:19:10 +00:00
|
|
|
%26 = OpTypeFunction %void
|
|
|
|
%30 = OpTypeFunction %_arr_v4int_uint_4
|
|
|
|
%33 = OpTypeFunction %S
|
|
|
|
%36 = OpConstantNull %S
|
|
|
|
%37 = OpTypeFunction %void %_arr_v4int_uint_4
|
2022-01-20 22:11:07 +00:00
|
|
|
%_ptr_Function__arr_v4int_uint_4 = OpTypePointer Function %_arr_v4int_uint_4
|
2021-06-02 17:23:03 +00:00
|
|
|
%int_1 = OpConstant %int 1
|
2022-09-02 19:19:10 +00:00
|
|
|
%44 = OpConstantComposite %v4int %int_1 %int_1 %int_1 %int_1
|
2021-06-02 17:23:03 +00:00
|
|
|
%int_2 = OpConstant %int 2
|
2022-09-02 19:19:10 +00:00
|
|
|
%46 = OpConstantComposite %v4int %int_2 %int_2 %int_2 %int_2
|
2021-06-02 17:23:03 +00:00
|
|
|
%int_3 = OpConstant %int 3
|
2022-09-02 19:19:10 +00:00
|
|
|
%48 = OpConstantComposite %v4int %int_3 %int_3 %int_3 %int_3
|
|
|
|
%49 = OpConstantComposite %_arr_v4int_uint_4 %44 %46 %48 %48
|
2021-06-02 17:23:03 +00:00
|
|
|
%uint_0 = OpConstant %uint 0
|
2022-01-20 22:11:07 +00:00
|
|
|
%_ptr_Uniform__arr_v4int_uint_4 = OpTypePointer Uniform %_arr_v4int_uint_4
|
|
|
|
%_ptr_StorageBuffer__arr_v4int_uint_4 = OpTypePointer StorageBuffer %_arr_v4int_uint_4
|
2021-06-02 17:23:03 +00:00
|
|
|
%_ptr_Function__arr__arr__arr_int_uint_2_uint_3_uint_4 = OpTypePointer Function %_arr__arr__arr_int_uint_2_uint_3_uint_4
|
2022-09-02 19:19:10 +00:00
|
|
|
%unused_entry_point = OpFunction %void None %26
|
|
|
|
%29 = OpLabel
|
2021-06-02 17:23:03 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2022-09-02 19:19:10 +00:00
|
|
|
%ret_arr = OpFunction %_arr_v4int_uint_4 None %30
|
|
|
|
%32 = OpLabel
|
2022-01-20 22:11:07 +00:00
|
|
|
OpReturnValue %8
|
2021-06-02 17:23:03 +00:00
|
|
|
OpFunctionEnd
|
2022-09-02 19:19:10 +00:00
|
|
|
%ret_struct_arr = OpFunction %S None %33
|
|
|
|
%35 = OpLabel
|
|
|
|
OpReturnValue %36
|
2021-06-02 17:23:03 +00:00
|
|
|
OpFunctionEnd
|
2022-09-02 19:19:10 +00:00
|
|
|
%foo = OpFunction %void None %37
|
2022-01-20 22:11:07 +00:00
|
|
|
%src_param = OpFunctionParameter %_arr_v4int_uint_4
|
2022-09-02 19:19:10 +00:00
|
|
|
%40 = OpLabel
|
2022-01-20 22:11:07 +00:00
|
|
|
%src_function = OpVariable %_ptr_Function__arr_v4int_uint_4 Function %8
|
2022-09-02 19:19:10 +00:00
|
|
|
%src_nested = OpVariable %_ptr_Function__arr__arr__arr_int_uint_2_uint_3_uint_4 Function %25
|
2022-01-20 22:11:07 +00:00
|
|
|
OpStore %dst %49
|
2022-09-02 19:19:10 +00:00
|
|
|
OpStore %dst %src_param
|
|
|
|
%50 = OpFunctionCall %_arr_v4int_uint_4 %ret_arr
|
2021-06-02 17:23:03 +00:00
|
|
|
OpStore %dst %50
|
2022-09-02 19:19:10 +00:00
|
|
|
OpStore %dst %8
|
|
|
|
%51 = OpLoad %_arr_v4int_uint_4 %src_function
|
2022-01-20 22:11:07 +00:00
|
|
|
OpStore %dst %51
|
2022-09-02 19:19:10 +00:00
|
|
|
%52 = OpLoad %_arr_v4int_uint_4 %src_private
|
2022-01-20 22:11:07 +00:00
|
|
|
OpStore %dst %52
|
2022-09-02 19:19:10 +00:00
|
|
|
%53 = OpLoad %_arr_v4int_uint_4 %src_workgroup
|
|
|
|
OpStore %dst %53
|
|
|
|
%54 = OpFunctionCall %S %ret_struct_arr
|
|
|
|
%55 = OpCompositeExtract %_arr_v4int_uint_4 %54 0
|
|
|
|
OpStore %dst %55
|
|
|
|
%58 = OpAccessChain %_ptr_Uniform__arr_v4int_uint_4 %src_uniform %uint_0 %uint_0
|
|
|
|
%59 = OpLoad %_arr_v4int_uint_4 %58
|
|
|
|
OpStore %dst %59
|
|
|
|
%61 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %src_storage %uint_0 %uint_0
|
|
|
|
%62 = OpLoad %_arr_v4int_uint_4 %61
|
|
|
|
OpStore %dst %62
|
|
|
|
%65 = OpLoad %_arr__arr__arr_int_uint_2_uint_3_uint_4 %src_nested
|
|
|
|
OpStore %dst_nested %65
|
2021-06-02 17:23:03 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|