2021-07-13 12:18:13 +00:00
|
|
|
; SPIR-V
|
|
|
|
; Version: 1.3
|
|
|
|
; Generator: Google Tint Compiler; 0
|
2023-02-27 16:06:54 +00:00
|
|
|
; Bound: 199
|
2021-07-13 12:18:13 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
2021-08-05 17:34:19 +00:00
|
|
|
OpEntryPoint GLCompute %main "main" %idx_1
|
2021-07-13 12:18:13 +00:00
|
|
|
OpExecutionMode %main LocalSize 1 1 1
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %idx_1 "idx_1"
|
2021-07-13 12:18:13 +00:00
|
|
|
OpName %S "S"
|
|
|
|
OpMemberName %S 0 "arr"
|
|
|
|
OpName %Inner "Inner"
|
2022-11-30 02:47:27 +00:00
|
|
|
OpMemberName %Inner 0 "scalar_f32"
|
|
|
|
OpMemberName %Inner 1 "scalar_i32"
|
|
|
|
OpMemberName %Inner 2 "scalar_u32"
|
|
|
|
OpMemberName %Inner 3 "vec2_f32"
|
|
|
|
OpMemberName %Inner 4 "vec2_i32"
|
|
|
|
OpMemberName %Inner 5 "vec2_u32"
|
|
|
|
OpMemberName %Inner 6 "vec3_f32"
|
|
|
|
OpMemberName %Inner 7 "vec3_i32"
|
|
|
|
OpMemberName %Inner 8 "vec3_u32"
|
|
|
|
OpMemberName %Inner 9 "vec4_f32"
|
|
|
|
OpMemberName %Inner 10 "vec4_i32"
|
|
|
|
OpMemberName %Inner 11 "vec4_u32"
|
|
|
|
OpMemberName %Inner 12 "mat2x2_f32"
|
|
|
|
OpMemberName %Inner 13 "mat2x3_f32"
|
|
|
|
OpMemberName %Inner 14 "mat2x4_f32"
|
|
|
|
OpMemberName %Inner 15 "mat3x2_f32"
|
|
|
|
OpMemberName %Inner 16 "mat3x3_f32"
|
|
|
|
OpMemberName %Inner 17 "mat3x4_f32"
|
|
|
|
OpMemberName %Inner 18 "mat4x2_f32"
|
|
|
|
OpMemberName %Inner 19 "mat4x3_f32"
|
|
|
|
OpMemberName %Inner 20 "mat4x4_f32"
|
|
|
|
OpMemberName %Inner 21 "arr2_vec3_f32"
|
|
|
|
OpName %sb "sb"
|
2023-02-27 16:06:54 +00:00
|
|
|
OpName %assign_and_preserve_padding_sb_arr_X_mat2x3_f32 "assign_and_preserve_padding_sb_arr_X_mat2x3_f32"
|
2022-12-06 18:32:19 +00:00
|
|
|
OpName %dest "dest"
|
|
|
|
OpName %value "value"
|
2023-02-27 16:06:54 +00:00
|
|
|
OpName %assign_and_preserve_padding_1_sb_arr_X_mat3x3_f32 "assign_and_preserve_padding_1_sb_arr_X_mat3x3_f32"
|
|
|
|
OpName %dest_0 "dest"
|
|
|
|
OpName %value_0 "value"
|
|
|
|
OpName %assign_and_preserve_padding_2_sb_arr_X_mat4x3_f32 "assign_and_preserve_padding_2_sb_arr_X_mat4x3_f32"
|
|
|
|
OpName %dest_1 "dest"
|
|
|
|
OpName %value_1 "value"
|
|
|
|
OpName %assign_and_preserve_padding_3_sb_arr_X_arr2_vec3_f32 "assign_and_preserve_padding_3_sb_arr_X_arr2_vec3_f32"
|
|
|
|
OpName %dest_2 "dest"
|
|
|
|
OpName %value_2 "value"
|
2022-12-06 18:32:19 +00:00
|
|
|
OpName %i "i"
|
|
|
|
OpName %var_for_index "var_for_index"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpName %main_inner "main_inner"
|
|
|
|
OpName %idx "idx"
|
2021-07-13 12:18:13 +00:00
|
|
|
OpName %main "main"
|
2021-08-05 17:34:19 +00:00
|
|
|
OpDecorate %idx_1 BuiltIn LocalInvocationIndex
|
2021-07-13 12:18:13 +00:00
|
|
|
OpDecorate %S Block
|
|
|
|
OpMemberDecorate %S 0 Offset 0
|
|
|
|
OpMemberDecorate %Inner 0 Offset 0
|
2022-11-30 02:47:27 +00:00
|
|
|
OpMemberDecorate %Inner 1 Offset 4
|
|
|
|
OpMemberDecorate %Inner 2 Offset 8
|
|
|
|
OpMemberDecorate %Inner 3 Offset 16
|
|
|
|
OpMemberDecorate %Inner 4 Offset 24
|
|
|
|
OpMemberDecorate %Inner 5 Offset 32
|
2021-07-13 12:18:13 +00:00
|
|
|
OpMemberDecorate %Inner 6 Offset 48
|
2022-11-30 02:47:27 +00:00
|
|
|
OpMemberDecorate %Inner 7 Offset 64
|
|
|
|
OpMemberDecorate %Inner 8 Offset 80
|
|
|
|
OpMemberDecorate %Inner 9 Offset 96
|
|
|
|
OpMemberDecorate %Inner 10 Offset 112
|
|
|
|
OpMemberDecorate %Inner 11 Offset 128
|
|
|
|
OpMemberDecorate %Inner 12 Offset 144
|
|
|
|
OpMemberDecorate %Inner 12 ColMajor
|
|
|
|
OpMemberDecorate %Inner 12 MatrixStride 8
|
|
|
|
OpMemberDecorate %Inner 13 Offset 160
|
|
|
|
OpMemberDecorate %Inner 13 ColMajor
|
|
|
|
OpMemberDecorate %Inner 13 MatrixStride 16
|
|
|
|
OpMemberDecorate %Inner 14 Offset 192
|
|
|
|
OpMemberDecorate %Inner 14 ColMajor
|
|
|
|
OpMemberDecorate %Inner 14 MatrixStride 16
|
|
|
|
OpMemberDecorate %Inner 15 Offset 224
|
|
|
|
OpMemberDecorate %Inner 15 ColMajor
|
|
|
|
OpMemberDecorate %Inner 15 MatrixStride 8
|
|
|
|
OpMemberDecorate %Inner 16 Offset 256
|
|
|
|
OpMemberDecorate %Inner 16 ColMajor
|
|
|
|
OpMemberDecorate %Inner 16 MatrixStride 16
|
|
|
|
OpMemberDecorate %Inner 17 Offset 304
|
|
|
|
OpMemberDecorate %Inner 17 ColMajor
|
|
|
|
OpMemberDecorate %Inner 17 MatrixStride 16
|
|
|
|
OpMemberDecorate %Inner 18 Offset 352
|
|
|
|
OpMemberDecorate %Inner 18 ColMajor
|
|
|
|
OpMemberDecorate %Inner 18 MatrixStride 8
|
|
|
|
OpMemberDecorate %Inner 19 Offset 384
|
|
|
|
OpMemberDecorate %Inner 19 ColMajor
|
|
|
|
OpMemberDecorate %Inner 19 MatrixStride 16
|
|
|
|
OpMemberDecorate %Inner 20 Offset 448
|
|
|
|
OpMemberDecorate %Inner 20 ColMajor
|
|
|
|
OpMemberDecorate %Inner 20 MatrixStride 16
|
|
|
|
OpMemberDecorate %Inner 21 Offset 512
|
|
|
|
OpDecorate %_arr_v3float_uint_2 ArrayStride 16
|
|
|
|
OpDecorate %_runtimearr_Inner ArrayStride 544
|
|
|
|
OpDecorate %sb Binding 0
|
|
|
|
OpDecorate %sb DescriptorSet 0
|
2022-12-06 18:32:19 +00:00
|
|
|
OpDecorate %_arr_uint_uint_1 ArrayStride 4
|
2021-08-05 17:34:19 +00:00
|
|
|
%uint = OpTypeInt 32 0
|
|
|
|
%_ptr_Input_uint = OpTypePointer Input %uint
|
|
|
|
%idx_1 = OpVariable %_ptr_Input_uint Input
|
2022-11-30 02:47:27 +00:00
|
|
|
%float = OpTypeFloat 32
|
2021-07-13 12:18:13 +00:00
|
|
|
%int = OpTypeInt 32 1
|
2022-11-30 02:47:27 +00:00
|
|
|
%v2float = OpTypeVector %float 2
|
|
|
|
%v2int = OpTypeVector %int 2
|
|
|
|
%v2uint = OpTypeVector %uint 2
|
|
|
|
%v3float = OpTypeVector %float 3
|
2021-07-13 12:18:13 +00:00
|
|
|
%v3int = OpTypeVector %int 3
|
|
|
|
%v3uint = OpTypeVector %uint 3
|
2022-11-30 02:47:27 +00:00
|
|
|
%v4float = OpTypeVector %float 4
|
|
|
|
%v4int = OpTypeVector %int 4
|
|
|
|
%v4uint = OpTypeVector %uint 4
|
|
|
|
%mat2v2float = OpTypeMatrix %v2float 2
|
2021-07-13 12:18:13 +00:00
|
|
|
%mat2v3float = OpTypeMatrix %v3float 2
|
2022-11-30 02:47:27 +00:00
|
|
|
%mat2v4float = OpTypeMatrix %v4float 2
|
2021-07-13 12:18:13 +00:00
|
|
|
%mat3v2float = OpTypeMatrix %v2float 3
|
2022-11-30 02:47:27 +00:00
|
|
|
%mat3v3float = OpTypeMatrix %v3float 3
|
|
|
|
%mat3v4float = OpTypeMatrix %v4float 3
|
|
|
|
%mat4v2float = OpTypeMatrix %v2float 4
|
|
|
|
%mat4v3float = OpTypeMatrix %v3float 4
|
|
|
|
%mat4v4float = OpTypeMatrix %v4float 4
|
|
|
|
%uint_2 = OpConstant %uint 2
|
|
|
|
%_arr_v3float_uint_2 = OpTypeArray %v3float %uint_2
|
|
|
|
%Inner = OpTypeStruct %float %int %uint %v2float %v2int %v2uint %v3float %v3int %v3uint %v4float %v4int %v4uint %mat2v2float %mat2v3float %mat2v4float %mat3v2float %mat3v3float %mat3v4float %mat4v2float %mat4v3float %mat4v4float %_arr_v3float_uint_2
|
2021-07-13 12:18:13 +00:00
|
|
|
%_runtimearr_Inner = OpTypeRuntimeArray %Inner
|
|
|
|
%S = OpTypeStruct %_runtimearr_Inner
|
|
|
|
%_ptr_StorageBuffer_S = OpTypePointer StorageBuffer %S
|
2022-11-30 02:47:27 +00:00
|
|
|
%sb = OpVariable %_ptr_StorageBuffer_S StorageBuffer
|
2021-07-13 12:18:13 +00:00
|
|
|
%void = OpTypeVoid
|
2022-12-06 18:32:19 +00:00
|
|
|
%uint_1 = OpConstant %uint 1
|
|
|
|
%_arr_uint_uint_1 = OpTypeArray %uint %uint_1
|
2023-02-27 16:06:54 +00:00
|
|
|
%31 = OpTypeFunction %void %_arr_uint_uint_1 %mat2v3float
|
|
|
|
%uint_0 = OpConstant %uint 0
|
|
|
|
%40 = OpConstantNull %int
|
|
|
|
%uint_13 = OpConstant %uint 13
|
|
|
|
%_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float
|
|
|
|
%45 = OpConstantNull %uint
|
|
|
|
%int_1 = OpConstant %int 1
|
|
|
|
%51 = OpTypeFunction %void %_arr_uint_uint_1 %mat3v3float
|
|
|
|
%uint_16 = OpConstant %uint 16
|
|
|
|
%int_2 = OpConstant %int 2
|
|
|
|
%67 = OpTypeFunction %void %_arr_uint_uint_1 %mat4v3float
|
|
|
|
%uint_19 = OpConstant %uint 19
|
|
|
|
%int_3 = OpConstant %int 3
|
|
|
|
%uint_3 = OpConstant %uint 3
|
|
|
|
%87 = OpTypeFunction %void %_arr_uint_uint_1 %_arr_v3float_uint_2
|
2022-12-06 18:32:19 +00:00
|
|
|
%_ptr_Function_uint = OpTypePointer Function %uint
|
|
|
|
%bool = OpTypeBool
|
|
|
|
%_ptr_Function__arr_v3float_uint_2 = OpTypePointer Function %_arr_v3float_uint_2
|
2023-02-27 16:06:54 +00:00
|
|
|
%106 = OpConstantNull %_arr_v3float_uint_2
|
2022-12-06 18:32:19 +00:00
|
|
|
%uint_21 = OpConstant %uint 21
|
|
|
|
%_ptr_Function_v3float = OpTypePointer Function %v3float
|
2023-02-27 16:06:54 +00:00
|
|
|
%117 = OpTypeFunction %void %uint
|
2022-11-30 02:47:27 +00:00
|
|
|
%_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float
|
2023-02-27 16:06:54 +00:00
|
|
|
%123 = OpConstantNull %float
|
2021-07-13 12:18:13 +00:00
|
|
|
%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
|
|
|
|
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
|
2022-11-30 02:47:27 +00:00
|
|
|
%_ptr_StorageBuffer_v2float = OpTypePointer StorageBuffer %v2float
|
2023-02-27 16:06:54 +00:00
|
|
|
%130 = OpConstantNull %v2float
|
2022-11-30 02:47:27 +00:00
|
|
|
%uint_4 = OpConstant %uint 4
|
|
|
|
%_ptr_StorageBuffer_v2int = OpTypePointer StorageBuffer %v2int
|
2023-02-27 16:06:54 +00:00
|
|
|
%134 = OpConstantNull %v2int
|
2021-07-13 12:18:13 +00:00
|
|
|
%uint_5 = OpConstant %uint 5
|
2022-11-30 02:47:27 +00:00
|
|
|
%_ptr_StorageBuffer_v2uint = OpTypePointer StorageBuffer %v2uint
|
2023-02-27 16:06:54 +00:00
|
|
|
%138 = OpConstantNull %v2uint
|
2021-07-13 12:18:13 +00:00
|
|
|
%uint_6 = OpConstant %uint 6
|
2023-02-27 16:06:54 +00:00
|
|
|
%141 = OpConstantNull %v3float
|
2021-07-13 12:18:13 +00:00
|
|
|
%uint_7 = OpConstant %uint 7
|
2022-11-30 02:47:27 +00:00
|
|
|
%_ptr_StorageBuffer_v3int = OpTypePointer StorageBuffer %v3int
|
2023-02-27 16:06:54 +00:00
|
|
|
%145 = OpConstantNull %v3int
|
2021-07-13 12:18:13 +00:00
|
|
|
%uint_8 = OpConstant %uint 8
|
2022-11-30 02:47:27 +00:00
|
|
|
%_ptr_StorageBuffer_v3uint = OpTypePointer StorageBuffer %v3uint
|
2023-02-27 16:06:54 +00:00
|
|
|
%149 = OpConstantNull %v3uint
|
2022-11-30 02:47:27 +00:00
|
|
|
%uint_9 = OpConstant %uint 9
|
|
|
|
%_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float
|
2023-02-27 16:06:54 +00:00
|
|
|
%153 = OpConstantNull %v4float
|
2022-11-30 02:47:27 +00:00
|
|
|
%uint_10 = OpConstant %uint 10
|
|
|
|
%_ptr_StorageBuffer_v4int = OpTypePointer StorageBuffer %v4int
|
2023-02-27 16:06:54 +00:00
|
|
|
%157 = OpConstantNull %v4int
|
2022-11-30 02:47:27 +00:00
|
|
|
%uint_11 = OpConstant %uint 11
|
|
|
|
%_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint
|
2023-02-27 16:06:54 +00:00
|
|
|
%161 = OpConstantNull %v4uint
|
2022-11-30 02:47:27 +00:00
|
|
|
%uint_12 = OpConstant %uint 12
|
|
|
|
%_ptr_StorageBuffer_mat2v2float = OpTypePointer StorageBuffer %mat2v2float
|
2023-02-27 16:06:54 +00:00
|
|
|
%165 = OpConstantNull %mat2v2float
|
|
|
|
%168 = OpConstantNull %mat2v3float
|
2022-11-30 02:47:27 +00:00
|
|
|
%uint_14 = OpConstant %uint 14
|
|
|
|
%_ptr_StorageBuffer_mat2v4float = OpTypePointer StorageBuffer %mat2v4float
|
2023-02-27 16:06:54 +00:00
|
|
|
%172 = OpConstantNull %mat2v4float
|
2022-11-30 02:47:27 +00:00
|
|
|
%uint_15 = OpConstant %uint 15
|
|
|
|
%_ptr_StorageBuffer_mat3v2float = OpTypePointer StorageBuffer %mat3v2float
|
2023-02-27 16:06:54 +00:00
|
|
|
%176 = OpConstantNull %mat3v2float
|
|
|
|
%178 = OpConstantNull %mat3v3float
|
2022-11-30 02:47:27 +00:00
|
|
|
%uint_17 = OpConstant %uint 17
|
|
|
|
%_ptr_StorageBuffer_mat3v4float = OpTypePointer StorageBuffer %mat3v4float
|
2023-02-27 16:06:54 +00:00
|
|
|
%182 = OpConstantNull %mat3v4float
|
2022-11-30 02:47:27 +00:00
|
|
|
%uint_18 = OpConstant %uint 18
|
|
|
|
%_ptr_StorageBuffer_mat4v2float = OpTypePointer StorageBuffer %mat4v2float
|
2023-02-27 16:06:54 +00:00
|
|
|
%186 = OpConstantNull %mat4v2float
|
|
|
|
%188 = OpConstantNull %mat4v3float
|
2022-11-30 02:47:27 +00:00
|
|
|
%uint_20 = OpConstant %uint 20
|
|
|
|
%_ptr_StorageBuffer_mat4v4float = OpTypePointer StorageBuffer %mat4v4float
|
2023-02-27 16:06:54 +00:00
|
|
|
%192 = OpConstantNull %mat4v4float
|
|
|
|
%194 = OpTypeFunction %void
|
|
|
|
%assign_and_preserve_padding_sb_arr_X_mat2x3_f32 = OpFunction %void None %31
|
2022-12-06 18:32:19 +00:00
|
|
|
%dest = OpFunctionParameter %_arr_uint_uint_1
|
2023-02-27 16:06:54 +00:00
|
|
|
%value = OpFunctionParameter %mat2v3float
|
2022-12-06 18:32:19 +00:00
|
|
|
%38 = OpLabel
|
2023-02-27 16:06:54 +00:00
|
|
|
%41 = OpCompositeExtract %uint %dest 0
|
|
|
|
%44 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %41 %uint_13 %40
|
|
|
|
%46 = OpCompositeExtract %v3float %value 0
|
|
|
|
OpStore %44 %46
|
|
|
|
%47 = OpCompositeExtract %uint %dest 0
|
|
|
|
%49 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %47 %uint_13 %int_1
|
|
|
|
%50 = OpCompositeExtract %v3float %value 1
|
|
|
|
OpStore %49 %50
|
2022-12-06 18:32:19 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2023-02-27 16:06:54 +00:00
|
|
|
%assign_and_preserve_padding_1_sb_arr_X_mat3x3_f32 = OpFunction %void None %51
|
|
|
|
%dest_0 = OpFunctionParameter %_arr_uint_uint_1
|
|
|
|
%value_0 = OpFunctionParameter %mat3v3float
|
|
|
|
%55 = OpLabel
|
|
|
|
%56 = OpCompositeExtract %uint %dest_0 0
|
|
|
|
%58 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %56 %uint_16 %40
|
|
|
|
%59 = OpCompositeExtract %v3float %value_0 0
|
|
|
|
OpStore %58 %59
|
|
|
|
%60 = OpCompositeExtract %uint %dest_0 0
|
|
|
|
%61 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %60 %uint_16 %int_1
|
|
|
|
%62 = OpCompositeExtract %v3float %value_0 1
|
|
|
|
OpStore %61 %62
|
|
|
|
%63 = OpCompositeExtract %uint %dest_0 0
|
|
|
|
%65 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %63 %uint_16 %int_2
|
|
|
|
%66 = OpCompositeExtract %v3float %value_0 2
|
|
|
|
OpStore %65 %66
|
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
|
|
|
%assign_and_preserve_padding_2_sb_arr_X_mat4x3_f32 = OpFunction %void None %67
|
|
|
|
%dest_1 = OpFunctionParameter %_arr_uint_uint_1
|
|
|
|
%value_1 = OpFunctionParameter %mat4v3float
|
2022-12-06 18:32:19 +00:00
|
|
|
%71 = OpLabel
|
2023-02-27 16:06:54 +00:00
|
|
|
%72 = OpCompositeExtract %uint %dest_1 0
|
|
|
|
%74 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %72 %uint_19 %40
|
|
|
|
%75 = OpCompositeExtract %v3float %value_1 0
|
|
|
|
OpStore %74 %75
|
|
|
|
%76 = OpCompositeExtract %uint %dest_1 0
|
|
|
|
%77 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %76 %uint_19 %int_1
|
|
|
|
%78 = OpCompositeExtract %v3float %value_1 1
|
|
|
|
OpStore %77 %78
|
|
|
|
%79 = OpCompositeExtract %uint %dest_1 0
|
|
|
|
%80 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %79 %uint_19 %int_2
|
|
|
|
%81 = OpCompositeExtract %v3float %value_1 2
|
|
|
|
OpStore %80 %81
|
|
|
|
%82 = OpCompositeExtract %uint %dest_1 0
|
|
|
|
%84 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %82 %uint_19 %int_3
|
|
|
|
%86 = OpCompositeExtract %v3float %value_1 3
|
|
|
|
OpStore %84 %86
|
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
|
|
|
%assign_and_preserve_padding_3_sb_arr_X_arr2_vec3_f32 = OpFunction %void None %87
|
|
|
|
%dest_2 = OpFunctionParameter %_arr_uint_uint_1
|
|
|
|
%value_2 = OpFunctionParameter %_arr_v3float_uint_2
|
|
|
|
%91 = OpLabel
|
|
|
|
%i = OpVariable %_ptr_Function_uint Function %45
|
|
|
|
%var_for_index = OpVariable %_ptr_Function__arr_v3float_uint_2 Function %106
|
|
|
|
OpStore %i %45
|
|
|
|
OpBranch %94
|
|
|
|
%94 = OpLabel
|
|
|
|
OpLoopMerge %95 %96 None
|
|
|
|
OpBranch %97
|
|
|
|
%97 = OpLabel
|
|
|
|
%99 = OpLoad %uint %i
|
|
|
|
%100 = OpULessThan %bool %99 %uint_2
|
|
|
|
%98 = OpLogicalNot %bool %100
|
|
|
|
OpSelectionMerge %102 None
|
|
|
|
OpBranchConditional %98 %103 %102
|
|
|
|
%103 = OpLabel
|
|
|
|
OpBranch %95
|
|
|
|
%102 = OpLabel
|
|
|
|
OpStore %var_for_index %value_2
|
|
|
|
%107 = OpCompositeExtract %uint %dest_2 0
|
|
|
|
%109 = OpLoad %uint %i
|
|
|
|
%110 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %107 %uint_21 %109
|
|
|
|
%111 = OpLoad %uint %i
|
|
|
|
%113 = OpAccessChain %_ptr_Function_v3float %var_for_index %111
|
|
|
|
%114 = OpLoad %v3float %113
|
|
|
|
OpStore %110 %114
|
|
|
|
OpBranch %96
|
|
|
|
%96 = OpLabel
|
|
|
|
%115 = OpLoad %uint %i
|
|
|
|
%116 = OpIAdd %uint %115 %uint_1
|
|
|
|
OpStore %i %116
|
|
|
|
OpBranch %94
|
|
|
|
%95 = OpLabel
|
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
|
|
|
%main_inner = OpFunction %void None %117
|
|
|
|
%idx = OpFunctionParameter %uint
|
|
|
|
%120 = OpLabel
|
|
|
|
%122 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %idx %uint_0
|
|
|
|
OpStore %122 %123
|
|
|
|
%125 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %idx %uint_1
|
|
|
|
OpStore %125 %40
|
|
|
|
%127 = OpAccessChain %_ptr_StorageBuffer_uint %sb %uint_0 %idx %uint_2
|
|
|
|
OpStore %127 %45
|
|
|
|
%129 = OpAccessChain %_ptr_StorageBuffer_v2float %sb %uint_0 %idx %uint_3
|
|
|
|
OpStore %129 %130
|
|
|
|
%133 = OpAccessChain %_ptr_StorageBuffer_v2int %sb %uint_0 %idx %uint_4
|
|
|
|
OpStore %133 %134
|
|
|
|
%137 = OpAccessChain %_ptr_StorageBuffer_v2uint %sb %uint_0 %idx %uint_5
|
|
|
|
OpStore %137 %138
|
|
|
|
%140 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %idx %uint_6
|
2022-12-06 18:32:19 +00:00
|
|
|
OpStore %140 %141
|
2023-02-27 16:06:54 +00:00
|
|
|
%144 = OpAccessChain %_ptr_StorageBuffer_v3int %sb %uint_0 %idx %uint_7
|
2022-12-06 18:32:19 +00:00
|
|
|
OpStore %144 %145
|
2023-02-27 16:06:54 +00:00
|
|
|
%148 = OpAccessChain %_ptr_StorageBuffer_v3uint %sb %uint_0 %idx %uint_8
|
2022-12-06 18:32:19 +00:00
|
|
|
OpStore %148 %149
|
2023-02-27 16:06:54 +00:00
|
|
|
%152 = OpAccessChain %_ptr_StorageBuffer_v4float %sb %uint_0 %idx %uint_9
|
|
|
|
OpStore %152 %153
|
|
|
|
%156 = OpAccessChain %_ptr_StorageBuffer_v4int %sb %uint_0 %idx %uint_10
|
|
|
|
OpStore %156 %157
|
|
|
|
%160 = OpAccessChain %_ptr_StorageBuffer_v4uint %sb %uint_0 %idx %uint_11
|
|
|
|
OpStore %160 %161
|
|
|
|
%164 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %sb %uint_0 %idx %uint_12
|
|
|
|
OpStore %164 %165
|
|
|
|
%167 = OpCompositeConstruct %_arr_uint_uint_1 %idx
|
|
|
|
%166 = OpFunctionCall %void %assign_and_preserve_padding_sb_arr_X_mat2x3_f32 %167 %168
|
|
|
|
%171 = OpAccessChain %_ptr_StorageBuffer_mat2v4float %sb %uint_0 %idx %uint_14
|
|
|
|
OpStore %171 %172
|
|
|
|
%175 = OpAccessChain %_ptr_StorageBuffer_mat3v2float %sb %uint_0 %idx %uint_15
|
|
|
|
OpStore %175 %176
|
|
|
|
%177 = OpFunctionCall %void %assign_and_preserve_padding_1_sb_arr_X_mat3x3_f32 %167 %178
|
|
|
|
%181 = OpAccessChain %_ptr_StorageBuffer_mat3v4float %sb %uint_0 %idx %uint_17
|
|
|
|
OpStore %181 %182
|
|
|
|
%185 = OpAccessChain %_ptr_StorageBuffer_mat4v2float %sb %uint_0 %idx %uint_18
|
|
|
|
OpStore %185 %186
|
|
|
|
%187 = OpFunctionCall %void %assign_and_preserve_padding_2_sb_arr_X_mat4x3_f32 %167 %188
|
|
|
|
%191 = OpAccessChain %_ptr_StorageBuffer_mat4v4float %sb %uint_0 %idx %uint_20
|
|
|
|
OpStore %191 %192
|
|
|
|
%193 = OpFunctionCall %void %assign_and_preserve_padding_3_sb_arr_X_arr2_vec3_f32 %167 %106
|
2021-08-05 17:34:19 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|
2023-02-27 16:06:54 +00:00
|
|
|
%main = OpFunction %void None %194
|
|
|
|
%196 = OpLabel
|
|
|
|
%198 = OpLoad %uint %idx_1
|
|
|
|
%197 = OpFunctionCall %void %main_inner %198
|
2021-07-13 12:18:13 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|