tint: Preserve padding in matrices with three rows

The PreservePadding transform now decomposes writes to matrices with
three rows into separate column vector writes, to avoid modifying
padding between columns.

Bug: tint:1571
Change-Id: If575f79bb87f52810783fd3338e2f3ce3228ab2e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/121600
Auto-Submit: James Price <jrprice@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: James Price <jrprice@google.com>
This commit is contained in:
James Price
2023-02-27 16:06:54 +00:00
committed by Dawn LUCI CQ
parent fe19fee3ea
commit 6176c85be8
84 changed files with 3733 additions and 1968 deletions

View File

@@ -46,7 +46,25 @@ layout(binding = 0, std430) buffer sb_block_ssbo {
S inner;
} sb;
void assign_and_preserve_padding_sb_arr2_vec3_f32(vec3 value[2]) {
void assign_and_preserve_padding_sb_mat2x3_f32(mat2x3 value) {
sb.inner.mat2x3_f32[0] = value[0u];
sb.inner.mat2x3_f32[1] = value[1u];
}
void assign_and_preserve_padding_1_sb_mat3x3_f32(mat3 value) {
sb.inner.mat3x3_f32[0] = value[0u];
sb.inner.mat3x3_f32[1] = value[1u];
sb.inner.mat3x3_f32[2] = value[2u];
}
void assign_and_preserve_padding_2_sb_mat4x3_f32(mat4x3 value) {
sb.inner.mat4x3_f32[0] = value[0u];
sb.inner.mat4x3_f32[1] = value[1u];
sb.inner.mat4x3_f32[2] = value[2u];
sb.inner.mat4x3_f32[3] = value[3u];
}
void assign_and_preserve_padding_3_sb_arr2_vec3_f32(vec3 value[2]) {
{
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
sb.inner.arr2_vec3_f32[i] = value[i];
@@ -68,16 +86,16 @@ void tint_symbol() {
sb.inner.vec4_i32 = ivec4(0);
sb.inner.vec4_u32 = uvec4(0u);
sb.inner.mat2x2_f32 = mat2(vec2(0.0f), vec2(0.0f));
sb.inner.mat2x3_f32 = mat2x3(vec3(0.0f), vec3(0.0f));
assign_and_preserve_padding_sb_mat2x3_f32(mat2x3(vec3(0.0f), vec3(0.0f)));
sb.inner.mat2x4_f32 = mat2x4(vec4(0.0f), vec4(0.0f));
sb.inner.mat3x2_f32 = mat3x2(vec2(0.0f), vec2(0.0f), vec2(0.0f));
sb.inner.mat3x3_f32 = mat3(vec3(0.0f), vec3(0.0f), vec3(0.0f));
assign_and_preserve_padding_1_sb_mat3x3_f32(mat3(vec3(0.0f), vec3(0.0f), vec3(0.0f)));
sb.inner.mat3x4_f32 = mat3x4(vec4(0.0f), vec4(0.0f), vec4(0.0f));
sb.inner.mat4x2_f32 = mat4x2(vec2(0.0f), vec2(0.0f), vec2(0.0f), vec2(0.0f));
sb.inner.mat4x3_f32 = mat4x3(vec3(0.0f), vec3(0.0f), vec3(0.0f), vec3(0.0f));
assign_and_preserve_padding_2_sb_mat4x3_f32(mat4x3(vec3(0.0f), vec3(0.0f), vec3(0.0f), vec3(0.0f)));
sb.inner.mat4x4_f32 = mat4(vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
vec3 tint_symbol_1[2] = vec3[2](vec3(0.0f), vec3(0.0f));
assign_and_preserve_padding_sb_arr2_vec3_f32(tint_symbol_1);
assign_and_preserve_padding_3_sb_arr2_vec3_f32(tint_symbol_1);
Inner tint_symbol_2 = Inner(0, 0.0f);
sb.inner.struct_inner = tint_symbol_2;
Inner tint_symbol_3[4] = Inner[4](Inner(0, 0.0f), Inner(0, 0.0f), Inner(0, 0.0f), Inner(0, 0.0f));

View File

@@ -53,7 +53,25 @@ struct S {
/* 0x0248 */ tint_array<int8_t, 8> tint_pad_6;
};
void assign_and_preserve_padding(device tint_array<float3, 2>* const dest, tint_array<float3, 2> value) {
void assign_and_preserve_padding(device float2x3* const dest, float2x3 value) {
(*(dest))[0u] = value[0u];
(*(dest))[1u] = value[1u];
}
void assign_and_preserve_padding_1(device float3x3* const dest, float3x3 value) {
(*(dest))[0u] = value[0u];
(*(dest))[1u] = value[1u];
(*(dest))[2u] = value[2u];
}
void assign_and_preserve_padding_2(device float4x3* const dest, float4x3 value) {
(*(dest))[0u] = value[0u];
(*(dest))[1u] = value[1u];
(*(dest))[2u] = value[2u];
(*(dest))[3u] = value[3u];
}
void assign_and_preserve_padding_3(device tint_array<float3, 2>* const dest, tint_array<float3, 2> value) {
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
(*(dest))[i] = value[i];
}
@@ -73,16 +91,16 @@ kernel void tint_symbol(device S* tint_symbol_4 [[buffer(0)]]) {
(*(tint_symbol_4)).vec4_i32 = int4(0);
(*(tint_symbol_4)).vec4_u32 = uint4(0u);
(*(tint_symbol_4)).mat2x2_f32 = float2x2(float2(0.0f), float2(0.0f));
(*(tint_symbol_4)).mat2x3_f32 = float2x3(float3(0.0f), float3(0.0f));
assign_and_preserve_padding(&((*(tint_symbol_4)).mat2x3_f32), float2x3(float3(0.0f), float3(0.0f)));
(*(tint_symbol_4)).mat2x4_f32 = float2x4(float4(0.0f), float4(0.0f));
(*(tint_symbol_4)).mat3x2_f32 = float3x2(float2(0.0f), float2(0.0f), float2(0.0f));
(*(tint_symbol_4)).mat3x3_f32 = float3x3(float3(0.0f), float3(0.0f), float3(0.0f));
assign_and_preserve_padding_1(&((*(tint_symbol_4)).mat3x3_f32), float3x3(float3(0.0f), float3(0.0f), float3(0.0f)));
(*(tint_symbol_4)).mat3x4_f32 = float3x4(float4(0.0f), float4(0.0f), float4(0.0f));
(*(tint_symbol_4)).mat4x2_f32 = float4x2(float2(0.0f), float2(0.0f), float2(0.0f), float2(0.0f));
(*(tint_symbol_4)).mat4x3_f32 = float4x3(float3(0.0f), float3(0.0f), float3(0.0f), float3(0.0f));
assign_and_preserve_padding_2(&((*(tint_symbol_4)).mat4x3_f32), float4x3(float3(0.0f), float3(0.0f), float3(0.0f), float3(0.0f)));
(*(tint_symbol_4)).mat4x4_f32 = float4x4(float4(0.0f), float4(0.0f), float4(0.0f), float4(0.0f));
tint_array<float3, 2> const tint_symbol_1 = tint_array<float3, 2>{};
assign_and_preserve_padding(&((*(tint_symbol_4)).arr2_vec3_f32), tint_symbol_1);
assign_and_preserve_padding_3(&((*(tint_symbol_4)).arr2_vec3_f32), tint_symbol_1);
Inner const tint_symbol_2 = Inner{};
(*(tint_symbol_4)).struct_inner = tint_symbol_2;
tint_array<Inner, 4> const tint_symbol_3 = tint_array<Inner, 4>{};

View File

@@ -1,7 +1,7 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 154
; Bound: 184
; Schema: 0
OpCapability Shader
OpMemoryModel Logical GLSL450
@@ -38,8 +38,14 @@
OpMemberName %Inner 1 "scalar_f32"
OpMemberName %S 23 "array_struct_inner"
OpName %sb "sb"
OpName %assign_and_preserve_padding_sb_arr2_vec3_f32 "assign_and_preserve_padding_sb_arr2_vec3_f32"
OpName %assign_and_preserve_padding_sb_mat2x3_f32 "assign_and_preserve_padding_sb_mat2x3_f32"
OpName %value "value"
OpName %assign_and_preserve_padding_1_sb_mat3x3_f32 "assign_and_preserve_padding_1_sb_mat3x3_f32"
OpName %value_0 "value"
OpName %assign_and_preserve_padding_2_sb_mat4x3_f32 "assign_and_preserve_padding_2_sb_mat4x3_f32"
OpName %value_1 "value"
OpName %assign_and_preserve_padding_3_sb_arr2_vec3_f32 "assign_and_preserve_padding_3_sb_arr2_vec3_f32"
OpName %value_2 "value"
OpName %i "i"
OpName %var_for_index "var_for_index"
OpName %main "main"
@@ -124,164 +130,206 @@
%_ptr_StorageBuffer_sb_block = OpTypePointer StorageBuffer %sb_block
%sb = OpVariable %_ptr_StorageBuffer_sb_block StorageBuffer
%void = OpTypeVoid
%31 = OpTypeFunction %void %_arr_v3float_uint_2
%36 = OpConstantNull %uint
%31 = OpTypeFunction %void %mat2v3float
%uint_0 = OpConstant %uint 0
%uint_13 = OpConstant %uint 13
%38 = OpConstantNull %int
%_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float
%41 = OpConstantNull %uint
%int_1 = OpConstant %int 1
%uint_1 = OpConstant %uint 1
%47 = OpTypeFunction %void %mat3v3float
%uint_16 = OpConstant %uint 16
%int_2 = OpConstant %int 2
%59 = OpTypeFunction %void %mat4v3float
%uint_19 = OpConstant %uint 19
%int_3 = OpConstant %int 3
%uint_3 = OpConstant %uint 3
%74 = OpTypeFunction %void %_arr_v3float_uint_2
%_ptr_Function_uint = OpTypePointer Function %uint
%bool = OpTypeBool
%_ptr_Function__arr_v3float_uint_2 = OpTypePointer Function %_arr_v3float_uint_2
%51 = OpConstantNull %_arr_v3float_uint_2
%uint_0 = OpConstant %uint 0
%92 = OpConstantNull %_arr_v3float_uint_2
%uint_21 = OpConstant %uint 21
%_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float
%_ptr_Function_v3float = OpTypePointer Function %v3float
%uint_1 = OpConstant %uint 1
%64 = OpTypeFunction %void
%102 = OpTypeFunction %void
%_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float
%69 = OpConstantNull %float
%107 = OpConstantNull %float
%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
%72 = OpConstantNull %int
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
%uint_3 = OpConstant %uint 3
%_ptr_StorageBuffer_v2float = OpTypePointer StorageBuffer %v2float
%78 = OpConstantNull %v2float
%114 = OpConstantNull %v2float
%_ptr_StorageBuffer_v2int = OpTypePointer StorageBuffer %v2int
%81 = OpConstantNull %v2int
%117 = OpConstantNull %v2int
%uint_5 = OpConstant %uint 5
%_ptr_StorageBuffer_v2uint = OpTypePointer StorageBuffer %v2uint
%85 = OpConstantNull %v2uint
%121 = OpConstantNull %v2uint
%uint_6 = OpConstant %uint 6
%88 = OpConstantNull %v3float
%124 = OpConstantNull %v3float
%uint_7 = OpConstant %uint 7
%_ptr_StorageBuffer_v3int = OpTypePointer StorageBuffer %v3int
%92 = OpConstantNull %v3int
%128 = OpConstantNull %v3int
%uint_8 = OpConstant %uint 8
%_ptr_StorageBuffer_v3uint = OpTypePointer StorageBuffer %v3uint
%96 = OpConstantNull %v3uint
%132 = OpConstantNull %v3uint
%uint_9 = OpConstant %uint 9
%_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float
%100 = OpConstantNull %v4float
%136 = OpConstantNull %v4float
%uint_10 = OpConstant %uint 10
%_ptr_StorageBuffer_v4int = OpTypePointer StorageBuffer %v4int
%104 = OpConstantNull %v4int
%140 = OpConstantNull %v4int
%uint_11 = OpConstant %uint 11
%_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint
%108 = OpConstantNull %v4uint
%144 = OpConstantNull %v4uint
%uint_12 = OpConstant %uint 12
%_ptr_StorageBuffer_mat2v2float = OpTypePointer StorageBuffer %mat2v2float
%112 = OpConstantNull %mat2v2float
%uint_13 = OpConstant %uint 13
%_ptr_StorageBuffer_mat2v3float = OpTypePointer StorageBuffer %mat2v3float
%116 = OpConstantNull %mat2v3float
%148 = OpConstantNull %mat2v2float
%150 = OpConstantNull %mat2v3float
%uint_14 = OpConstant %uint 14
%_ptr_StorageBuffer_mat2v4float = OpTypePointer StorageBuffer %mat2v4float
%120 = OpConstantNull %mat2v4float
%154 = OpConstantNull %mat2v4float
%uint_15 = OpConstant %uint 15
%_ptr_StorageBuffer_mat3v2float = OpTypePointer StorageBuffer %mat3v2float
%124 = OpConstantNull %mat3v2float
%uint_16 = OpConstant %uint 16
%_ptr_StorageBuffer_mat3v3float = OpTypePointer StorageBuffer %mat3v3float
%128 = OpConstantNull %mat3v3float
%158 = OpConstantNull %mat3v2float
%160 = OpConstantNull %mat3v3float
%uint_17 = OpConstant %uint 17
%_ptr_StorageBuffer_mat3v4float = OpTypePointer StorageBuffer %mat3v4float
%132 = OpConstantNull %mat3v4float
%164 = OpConstantNull %mat3v4float
%uint_18 = OpConstant %uint 18
%_ptr_StorageBuffer_mat4v2float = OpTypePointer StorageBuffer %mat4v2float
%136 = OpConstantNull %mat4v2float
%uint_19 = OpConstant %uint 19
%_ptr_StorageBuffer_mat4v3float = OpTypePointer StorageBuffer %mat4v3float
%140 = OpConstantNull %mat4v3float
%168 = OpConstantNull %mat4v2float
%170 = OpConstantNull %mat4v3float
%uint_20 = OpConstant %uint 20
%_ptr_StorageBuffer_mat4v4float = OpTypePointer StorageBuffer %mat4v4float
%144 = OpConstantNull %mat4v4float
%174 = OpConstantNull %mat4v4float
%uint_22 = OpConstant %uint 22
%_ptr_StorageBuffer_Inner = OpTypePointer StorageBuffer %Inner
%149 = OpConstantNull %Inner
%179 = OpConstantNull %Inner
%uint_23 = OpConstant %uint 23
%_ptr_StorageBuffer__arr_Inner_uint_4 = OpTypePointer StorageBuffer %_arr_Inner_uint_4
%153 = OpConstantNull %_arr_Inner_uint_4
%assign_and_preserve_padding_sb_arr2_vec3_f32 = OpFunction %void None %31
%value = OpFunctionParameter %_arr_v3float_uint_2
%183 = OpConstantNull %_arr_Inner_uint_4
%assign_and_preserve_padding_sb_mat2x3_f32 = OpFunction %void None %31
%value = OpFunctionParameter %mat2v3float
%35 = OpLabel
%i = OpVariable %_ptr_Function_uint Function %36
%var_for_index = OpVariable %_ptr_Function__arr_v3float_uint_2 Function %51
OpStore %i %36
OpBranch %39
%39 = OpLabel
OpLoopMerge %40 %41 None
OpBranch %42
%42 = OpLabel
%44 = OpLoad %uint %i
%45 = OpULessThan %bool %44 %uint_2
%43 = OpLogicalNot %bool %45
OpSelectionMerge %47 None
OpBranchConditional %43 %48 %47
%48 = OpLabel
OpBranch %40
%47 = OpLabel
OpStore %var_for_index %value
%54 = OpLoad %uint %i
%56 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_21 %54
%57 = OpLoad %uint %i
%59 = OpAccessChain %_ptr_Function_v3float %var_for_index %57
%60 = OpLoad %v3float %59
OpStore %56 %60
OpBranch %41
%41 = OpLabel
%61 = OpLoad %uint %i
%63 = OpIAdd %uint %61 %uint_1
OpStore %i %63
OpBranch %39
%40 = OpLabel
%40 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_13 %38
%42 = OpCompositeExtract %v3float %value 0
OpStore %40 %42
%44 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_13 %int_1
%46 = OpCompositeExtract %v3float %value 1
OpStore %44 %46
OpReturn
OpFunctionEnd
%main = OpFunction %void None %64
%66 = OpLabel
%68 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %uint_0
%assign_and_preserve_padding_1_sb_mat3x3_f32 = OpFunction %void None %47
%value_0 = OpFunctionParameter %mat3v3float
%50 = OpLabel
%52 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_16 %38
%53 = OpCompositeExtract %v3float %value_0 0
OpStore %52 %53
%54 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_16 %int_1
%55 = OpCompositeExtract %v3float %value_0 1
OpStore %54 %55
%57 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_16 %int_2
%58 = OpCompositeExtract %v3float %value_0 2
OpStore %57 %58
OpReturn
OpFunctionEnd
%assign_and_preserve_padding_2_sb_mat4x3_f32 = OpFunction %void None %59
%value_1 = OpFunctionParameter %mat4v3float
%62 = OpLabel
%64 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_19 %38
%65 = OpCompositeExtract %v3float %value_1 0
OpStore %64 %65
%66 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_19 %int_1
%67 = OpCompositeExtract %v3float %value_1 1
OpStore %66 %67
%68 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_19 %int_2
%69 = OpCompositeExtract %v3float %value_1 2
OpStore %68 %69
%71 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %uint_1
OpStore %71 %72
%74 = OpAccessChain %_ptr_StorageBuffer_uint %sb %uint_0 %uint_2
OpStore %74 %36
%77 = OpAccessChain %_ptr_StorageBuffer_v2float %sb %uint_0 %uint_3
OpStore %77 %78
%80 = OpAccessChain %_ptr_StorageBuffer_v2int %sb %uint_0 %uint_4
OpStore %80 %81
%84 = OpAccessChain %_ptr_StorageBuffer_v2uint %sb %uint_0 %uint_5
OpStore %84 %85
%87 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_6
OpStore %87 %88
%91 = OpAccessChain %_ptr_StorageBuffer_v3int %sb %uint_0 %uint_7
OpStore %91 %92
%95 = OpAccessChain %_ptr_StorageBuffer_v3uint %sb %uint_0 %uint_8
OpStore %95 %96
%99 = OpAccessChain %_ptr_StorageBuffer_v4float %sb %uint_0 %uint_9
OpStore %99 %100
%103 = OpAccessChain %_ptr_StorageBuffer_v4int %sb %uint_0 %uint_10
OpStore %103 %104
%107 = OpAccessChain %_ptr_StorageBuffer_v4uint %sb %uint_0 %uint_11
OpStore %107 %108
%111 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %sb %uint_0 %uint_12
OpStore %111 %112
%115 = OpAccessChain %_ptr_StorageBuffer_mat2v3float %sb %uint_0 %uint_13
OpStore %115 %116
%119 = OpAccessChain %_ptr_StorageBuffer_mat2v4float %sb %uint_0 %uint_14
OpStore %119 %120
%123 = OpAccessChain %_ptr_StorageBuffer_mat3v2float %sb %uint_0 %uint_15
OpStore %123 %124
%127 = OpAccessChain %_ptr_StorageBuffer_mat3v3float %sb %uint_0 %uint_16
OpStore %127 %128
%131 = OpAccessChain %_ptr_StorageBuffer_mat3v4float %sb %uint_0 %uint_17
OpStore %131 %132
%135 = OpAccessChain %_ptr_StorageBuffer_mat4v2float %sb %uint_0 %uint_18
OpStore %135 %136
%139 = OpAccessChain %_ptr_StorageBuffer_mat4v3float %sb %uint_0 %uint_19
OpStore %139 %140
%143 = OpAccessChain %_ptr_StorageBuffer_mat4v4float %sb %uint_0 %uint_20
OpStore %143 %144
%145 = OpFunctionCall %void %assign_and_preserve_padding_sb_arr2_vec3_f32 %51
%148 = OpAccessChain %_ptr_StorageBuffer_Inner %sb %uint_0 %uint_22
OpStore %148 %149
%152 = OpAccessChain %_ptr_StorageBuffer__arr_Inner_uint_4 %sb %uint_0 %uint_23
OpStore %152 %153
%71 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_19 %int_3
%73 = OpCompositeExtract %v3float %value_1 3
OpStore %71 %73
OpReturn
OpFunctionEnd
%assign_and_preserve_padding_3_sb_arr2_vec3_f32 = OpFunction %void None %74
%value_2 = OpFunctionParameter %_arr_v3float_uint_2
%77 = OpLabel
%i = OpVariable %_ptr_Function_uint Function %41
%var_for_index = OpVariable %_ptr_Function__arr_v3float_uint_2 Function %92
OpStore %i %41
OpBranch %80
%80 = OpLabel
OpLoopMerge %81 %82 None
OpBranch %83
%83 = OpLabel
%85 = OpLoad %uint %i
%86 = OpULessThan %bool %85 %uint_2
%84 = OpLogicalNot %bool %86
OpSelectionMerge %88 None
OpBranchConditional %84 %89 %88
%89 = OpLabel
OpBranch %81
%88 = OpLabel
OpStore %var_for_index %value_2
%94 = OpLoad %uint %i
%95 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_21 %94
%96 = OpLoad %uint %i
%98 = OpAccessChain %_ptr_Function_v3float %var_for_index %96
%99 = OpLoad %v3float %98
OpStore %95 %99
OpBranch %82
%82 = OpLabel
%100 = OpLoad %uint %i
%101 = OpIAdd %uint %100 %uint_1
OpStore %i %101
OpBranch %80
%81 = OpLabel
OpReturn
OpFunctionEnd
%main = OpFunction %void None %102
%104 = OpLabel
%106 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %uint_0
OpStore %106 %107
%109 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %uint_1
OpStore %109 %38
%111 = OpAccessChain %_ptr_StorageBuffer_uint %sb %uint_0 %uint_2
OpStore %111 %41
%113 = OpAccessChain %_ptr_StorageBuffer_v2float %sb %uint_0 %uint_3
OpStore %113 %114
%116 = OpAccessChain %_ptr_StorageBuffer_v2int %sb %uint_0 %uint_4
OpStore %116 %117
%120 = OpAccessChain %_ptr_StorageBuffer_v2uint %sb %uint_0 %uint_5
OpStore %120 %121
%123 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_6
OpStore %123 %124
%127 = OpAccessChain %_ptr_StorageBuffer_v3int %sb %uint_0 %uint_7
OpStore %127 %128
%131 = OpAccessChain %_ptr_StorageBuffer_v3uint %sb %uint_0 %uint_8
OpStore %131 %132
%135 = OpAccessChain %_ptr_StorageBuffer_v4float %sb %uint_0 %uint_9
OpStore %135 %136
%139 = OpAccessChain %_ptr_StorageBuffer_v4int %sb %uint_0 %uint_10
OpStore %139 %140
%143 = OpAccessChain %_ptr_StorageBuffer_v4uint %sb %uint_0 %uint_11
OpStore %143 %144
%147 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %sb %uint_0 %uint_12
OpStore %147 %148
%149 = OpFunctionCall %void %assign_and_preserve_padding_sb_mat2x3_f32 %150
%153 = OpAccessChain %_ptr_StorageBuffer_mat2v4float %sb %uint_0 %uint_14
OpStore %153 %154
%157 = OpAccessChain %_ptr_StorageBuffer_mat3v2float %sb %uint_0 %uint_15
OpStore %157 %158
%159 = OpFunctionCall %void %assign_and_preserve_padding_1_sb_mat3x3_f32 %160
%163 = OpAccessChain %_ptr_StorageBuffer_mat3v4float %sb %uint_0 %uint_17
OpStore %163 %164
%167 = OpAccessChain %_ptr_StorageBuffer_mat4v2float %sb %uint_0 %uint_18
OpStore %167 %168
%169 = OpFunctionCall %void %assign_and_preserve_padding_2_sb_mat4x3_f32 %170
%173 = OpAccessChain %_ptr_StorageBuffer_mat4v4float %sb %uint_0 %uint_20
OpStore %173 %174
%175 = OpFunctionCall %void %assign_and_preserve_padding_3_sb_arr2_vec3_f32 %92
%178 = OpAccessChain %_ptr_StorageBuffer_Inner %sb %uint_0 %uint_22
OpStore %178 %179
%182 = OpAccessChain %_ptr_StorageBuffer__arr_Inner_uint_4 %sb %uint_0 %uint_23
OpStore %182 %183
OpReturn
OpFunctionEnd

View File

@@ -66,7 +66,43 @@ layout(binding = 0, std430) buffer sb_block_ssbo {
S inner;
} sb;
void assign_and_preserve_padding_sb_arr2_vec3_f32(vec3 value[2]) {
void assign_and_preserve_padding_sb_mat2x3_f32(mat2x3 value) {
sb.inner.mat2x3_f32[0] = value[0u];
sb.inner.mat2x3_f32[1] = value[1u];
}
void assign_and_preserve_padding_1_sb_mat3x3_f32(mat3 value) {
sb.inner.mat3x3_f32[0] = value[0u];
sb.inner.mat3x3_f32[1] = value[1u];
sb.inner.mat3x3_f32[2] = value[2u];
}
void assign_and_preserve_padding_2_sb_mat4x3_f32(mat4x3 value) {
sb.inner.mat4x3_f32[0] = value[0u];
sb.inner.mat4x3_f32[1] = value[1u];
sb.inner.mat4x3_f32[2] = value[2u];
sb.inner.mat4x3_f32[3] = value[3u];
}
void assign_and_preserve_padding_3_sb_mat2x3_f16(f16mat2x3 value) {
sb.inner.mat2x3_f16[0] = value[0u];
sb.inner.mat2x3_f16[1] = value[1u];
}
void assign_and_preserve_padding_4_sb_mat3x3_f16(f16mat3 value) {
sb.inner.mat3x3_f16[0] = value[0u];
sb.inner.mat3x3_f16[1] = value[1u];
sb.inner.mat3x3_f16[2] = value[2u];
}
void assign_and_preserve_padding_5_sb_mat4x3_f16(f16mat4x3 value) {
sb.inner.mat4x3_f16[0] = value[0u];
sb.inner.mat4x3_f16[1] = value[1u];
sb.inner.mat4x3_f16[2] = value[2u];
sb.inner.mat4x3_f16[3] = value[3u];
}
void assign_and_preserve_padding_6_sb_arr2_vec3_f32(vec3 value[2]) {
{
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
sb.inner.arr2_vec3_f32[i] = value[i];
@@ -74,23 +110,23 @@ void assign_and_preserve_padding_sb_arr2_vec3_f32(vec3 value[2]) {
}
}
void assign_and_preserve_padding_1_sb_struct_inner(Inner value) {
void assign_and_preserve_padding_7_sb_struct_inner(Inner value) {
sb.inner.struct_inner.scalar_i32 = value.scalar_i32;
sb.inner.struct_inner.scalar_f32 = value.scalar_f32;
sb.inner.struct_inner.scalar_f16 = value.scalar_f16;
}
void assign_and_preserve_padding_1_sb_array_struct_inner_X(uint dest[1], Inner value) {
void assign_and_preserve_padding_7_sb_array_struct_inner_X(uint dest[1], Inner value) {
sb.inner.array_struct_inner[dest[0]].scalar_i32 = value.scalar_i32;
sb.inner.array_struct_inner[dest[0]].scalar_f32 = value.scalar_f32;
sb.inner.array_struct_inner[dest[0]].scalar_f16 = value.scalar_f16;
}
void assign_and_preserve_padding_2_sb_array_struct_inner(Inner value[4]) {
void assign_and_preserve_padding_8_sb_array_struct_inner(Inner value[4]) {
{
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
uint tint_symbol_1[1] = uint[1](i);
assign_and_preserve_padding_1_sb_array_struct_inner_X(tint_symbol_1, value[i]);
assign_and_preserve_padding_7_sb_array_struct_inner_X(tint_symbol_1, value[i]);
}
}
}
@@ -113,31 +149,31 @@ void tint_symbol() {
sb.inner.vec4_u32 = uvec4(0u);
sb.inner.vec4_f16 = f16vec4(0.0hf);
sb.inner.mat2x2_f32 = mat2(vec2(0.0f), vec2(0.0f));
sb.inner.mat2x3_f32 = mat2x3(vec3(0.0f), vec3(0.0f));
assign_and_preserve_padding_sb_mat2x3_f32(mat2x3(vec3(0.0f), vec3(0.0f)));
sb.inner.mat2x4_f32 = mat2x4(vec4(0.0f), vec4(0.0f));
sb.inner.mat3x2_f32 = mat3x2(vec2(0.0f), vec2(0.0f), vec2(0.0f));
sb.inner.mat3x3_f32 = mat3(vec3(0.0f), vec3(0.0f), vec3(0.0f));
assign_and_preserve_padding_1_sb_mat3x3_f32(mat3(vec3(0.0f), vec3(0.0f), vec3(0.0f)));
sb.inner.mat3x4_f32 = mat3x4(vec4(0.0f), vec4(0.0f), vec4(0.0f));
sb.inner.mat4x2_f32 = mat4x2(vec2(0.0f), vec2(0.0f), vec2(0.0f), vec2(0.0f));
sb.inner.mat4x3_f32 = mat4x3(vec3(0.0f), vec3(0.0f), vec3(0.0f), vec3(0.0f));
assign_and_preserve_padding_2_sb_mat4x3_f32(mat4x3(vec3(0.0f), vec3(0.0f), vec3(0.0f), vec3(0.0f)));
sb.inner.mat4x4_f32 = mat4(vec4(0.0f), vec4(0.0f), vec4(0.0f), vec4(0.0f));
sb.inner.mat2x2_f16 = f16mat2(f16vec2(0.0hf), f16vec2(0.0hf));
sb.inner.mat2x3_f16 = f16mat2x3(f16vec3(0.0hf), f16vec3(0.0hf));
assign_and_preserve_padding_3_sb_mat2x3_f16(f16mat2x3(f16vec3(0.0hf), f16vec3(0.0hf)));
sb.inner.mat2x4_f16 = f16mat2x4(f16vec4(0.0hf), f16vec4(0.0hf));
sb.inner.mat3x2_f16 = f16mat3x2(f16vec2(0.0hf), f16vec2(0.0hf), f16vec2(0.0hf));
sb.inner.mat3x3_f16 = f16mat3(f16vec3(0.0hf), f16vec3(0.0hf), f16vec3(0.0hf));
assign_and_preserve_padding_4_sb_mat3x3_f16(f16mat3(f16vec3(0.0hf), f16vec3(0.0hf), f16vec3(0.0hf)));
sb.inner.mat3x4_f16 = f16mat3x4(f16vec4(0.0hf), f16vec4(0.0hf), f16vec4(0.0hf));
sb.inner.mat4x2_f16 = f16mat4x2(f16vec2(0.0hf), f16vec2(0.0hf), f16vec2(0.0hf), f16vec2(0.0hf));
sb.inner.mat4x3_f16 = f16mat4x3(f16vec3(0.0hf), f16vec3(0.0hf), f16vec3(0.0hf), f16vec3(0.0hf));
assign_and_preserve_padding_5_sb_mat4x3_f16(f16mat4x3(f16vec3(0.0hf), f16vec3(0.0hf), f16vec3(0.0hf), f16vec3(0.0hf)));
sb.inner.mat4x4_f16 = f16mat4(f16vec4(0.0hf), f16vec4(0.0hf), f16vec4(0.0hf), f16vec4(0.0hf));
vec3 tint_symbol_2[2] = vec3[2](vec3(0.0f), vec3(0.0f));
assign_and_preserve_padding_sb_arr2_vec3_f32(tint_symbol_2);
assign_and_preserve_padding_6_sb_arr2_vec3_f32(tint_symbol_2);
f16mat4x2 tint_symbol_3[2] = f16mat4x2[2](f16mat4x2(f16vec2(0.0hf), f16vec2(0.0hf), f16vec2(0.0hf), f16vec2(0.0hf)), f16mat4x2(f16vec2(0.0hf), f16vec2(0.0hf), f16vec2(0.0hf), f16vec2(0.0hf)));
sb.inner.arr2_mat4x2_f16 = tint_symbol_3;
Inner tint_symbol_4 = Inner(0, 0.0f, 0.0hf);
assign_and_preserve_padding_1_sb_struct_inner(tint_symbol_4);
assign_and_preserve_padding_7_sb_struct_inner(tint_symbol_4);
Inner tint_symbol_5[4] = Inner[4](Inner(0, 0.0f, 0.0hf), Inner(0, 0.0f, 0.0hf), Inner(0, 0.0f, 0.0hf), Inner(0, 0.0f, 0.0hf));
assign_and_preserve_padding_2_sb_array_struct_inner(tint_symbol_5);
assign_and_preserve_padding_8_sb_array_struct_inner(tint_symbol_5);
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;

View File

@@ -73,21 +73,57 @@ struct S {
/* 0x035c */ tint_array<int8_t, 4> tint_pad_11;
};
void assign_and_preserve_padding(device tint_array<float3, 2>* const dest, tint_array<float3, 2> value) {
void assign_and_preserve_padding(device float2x3* const dest, float2x3 value) {
(*(dest))[0u] = value[0u];
(*(dest))[1u] = value[1u];
}
void assign_and_preserve_padding_1(device float3x3* const dest, float3x3 value) {
(*(dest))[0u] = value[0u];
(*(dest))[1u] = value[1u];
(*(dest))[2u] = value[2u];
}
void assign_and_preserve_padding_2(device float4x3* const dest, float4x3 value) {
(*(dest))[0u] = value[0u];
(*(dest))[1u] = value[1u];
(*(dest))[2u] = value[2u];
(*(dest))[3u] = value[3u];
}
void assign_and_preserve_padding_3(device half2x3* const dest, half2x3 value) {
(*(dest))[0u] = value[0u];
(*(dest))[1u] = value[1u];
}
void assign_and_preserve_padding_4(device half3x3* const dest, half3x3 value) {
(*(dest))[0u] = value[0u];
(*(dest))[1u] = value[1u];
(*(dest))[2u] = value[2u];
}
void assign_and_preserve_padding_5(device half4x3* const dest, half4x3 value) {
(*(dest))[0u] = value[0u];
(*(dest))[1u] = value[1u];
(*(dest))[2u] = value[2u];
(*(dest))[3u] = value[3u];
}
void assign_and_preserve_padding_6(device tint_array<float3, 2>* const dest, tint_array<float3, 2> value) {
for(uint i = 0u; (i < 2u); i = (i + 1u)) {
(*(dest))[i] = value[i];
}
}
void assign_and_preserve_padding_1(device Inner* const dest, Inner value) {
void assign_and_preserve_padding_7(device Inner* const dest, Inner value) {
(*(dest)).scalar_i32 = value.scalar_i32;
(*(dest)).scalar_f32 = value.scalar_f32;
(*(dest)).scalar_f16 = value.scalar_f16;
}
void assign_and_preserve_padding_2(device tint_array<Inner, 4>* const dest, tint_array<Inner, 4> value) {
void assign_and_preserve_padding_8(device tint_array<Inner, 4>* const dest, tint_array<Inner, 4> value) {
for(uint i = 0u; (i < 4u); i = (i + 1u)) {
assign_and_preserve_padding_1(&((*(dest))[i]), value[i]);
assign_and_preserve_padding_7(&((*(dest))[i]), value[i]);
}
}
@@ -109,31 +145,31 @@ kernel void tint_symbol(device S* tint_symbol_5 [[buffer(0)]]) {
(*(tint_symbol_5)).vec4_u32 = uint4(0u);
(*(tint_symbol_5)).vec4_f16 = half4(0.0h);
(*(tint_symbol_5)).mat2x2_f32 = float2x2(float2(0.0f), float2(0.0f));
(*(tint_symbol_5)).mat2x3_f32 = float2x3(float3(0.0f), float3(0.0f));
assign_and_preserve_padding(&((*(tint_symbol_5)).mat2x3_f32), float2x3(float3(0.0f), float3(0.0f)));
(*(tint_symbol_5)).mat2x4_f32 = float2x4(float4(0.0f), float4(0.0f));
(*(tint_symbol_5)).mat3x2_f32 = float3x2(float2(0.0f), float2(0.0f), float2(0.0f));
(*(tint_symbol_5)).mat3x3_f32 = float3x3(float3(0.0f), float3(0.0f), float3(0.0f));
assign_and_preserve_padding_1(&((*(tint_symbol_5)).mat3x3_f32), float3x3(float3(0.0f), float3(0.0f), float3(0.0f)));
(*(tint_symbol_5)).mat3x4_f32 = float3x4(float4(0.0f), float4(0.0f), float4(0.0f));
(*(tint_symbol_5)).mat4x2_f32 = float4x2(float2(0.0f), float2(0.0f), float2(0.0f), float2(0.0f));
(*(tint_symbol_5)).mat4x3_f32 = float4x3(float3(0.0f), float3(0.0f), float3(0.0f), float3(0.0f));
assign_and_preserve_padding_2(&((*(tint_symbol_5)).mat4x3_f32), float4x3(float3(0.0f), float3(0.0f), float3(0.0f), float3(0.0f)));
(*(tint_symbol_5)).mat4x4_f32 = float4x4(float4(0.0f), float4(0.0f), float4(0.0f), float4(0.0f));
(*(tint_symbol_5)).mat2x2_f16 = half2x2(half2(0.0h), half2(0.0h));
(*(tint_symbol_5)).mat2x3_f16 = half2x3(half3(0.0h), half3(0.0h));
assign_and_preserve_padding_3(&((*(tint_symbol_5)).mat2x3_f16), half2x3(half3(0.0h), half3(0.0h)));
(*(tint_symbol_5)).mat2x4_f16 = half2x4(half4(0.0h), half4(0.0h));
(*(tint_symbol_5)).mat3x2_f16 = half3x2(half2(0.0h), half2(0.0h), half2(0.0h));
(*(tint_symbol_5)).mat3x3_f16 = half3x3(half3(0.0h), half3(0.0h), half3(0.0h));
assign_and_preserve_padding_4(&((*(tint_symbol_5)).mat3x3_f16), half3x3(half3(0.0h), half3(0.0h), half3(0.0h)));
(*(tint_symbol_5)).mat3x4_f16 = half3x4(half4(0.0h), half4(0.0h), half4(0.0h));
(*(tint_symbol_5)).mat4x2_f16 = half4x2(half2(0.0h), half2(0.0h), half2(0.0h), half2(0.0h));
(*(tint_symbol_5)).mat4x3_f16 = half4x3(half3(0.0h), half3(0.0h), half3(0.0h), half3(0.0h));
assign_and_preserve_padding_5(&((*(tint_symbol_5)).mat4x3_f16), half4x3(half3(0.0h), half3(0.0h), half3(0.0h), half3(0.0h)));
(*(tint_symbol_5)).mat4x4_f16 = half4x4(half4(0.0h), half4(0.0h), half4(0.0h), half4(0.0h));
tint_array<float3, 2> const tint_symbol_1 = tint_array<float3, 2>{};
assign_and_preserve_padding(&((*(tint_symbol_5)).arr2_vec3_f32), tint_symbol_1);
assign_and_preserve_padding_6(&((*(tint_symbol_5)).arr2_vec3_f32), tint_symbol_1);
tint_array<half4x2, 2> const tint_symbol_4 = tint_array<half4x2, 2>{};
(*(tint_symbol_5)).arr2_mat4x2_f16 = tint_symbol_4;
Inner const tint_symbol_2 = Inner{};
assign_and_preserve_padding_1(&((*(tint_symbol_5)).struct_inner), tint_symbol_2);
assign_and_preserve_padding_7(&((*(tint_symbol_5)).struct_inner), tint_symbol_2);
tint_array<Inner, 4> const tint_symbol_3 = tint_array<Inner, 4>{};
assign_and_preserve_padding_2(&((*(tint_symbol_5)).array_struct_inner), tint_symbol_3);
assign_and_preserve_padding_8(&((*(tint_symbol_5)).array_struct_inner), tint_symbol_3);
return;
}

View File

@@ -1,7 +1,7 @@
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 272
; Bound: 329
; Schema: 0
OpCapability Shader
OpCapability Float16
@@ -57,17 +57,29 @@
OpMemberName %Inner 2 "scalar_f16"
OpMemberName %S 37 "array_struct_inner"
OpName %sb "sb"
OpName %assign_and_preserve_padding_sb_arr2_vec3_f32 "assign_and_preserve_padding_sb_arr2_vec3_f32"
OpName %assign_and_preserve_padding_sb_mat2x3_f32 "assign_and_preserve_padding_sb_mat2x3_f32"
OpName %value "value"
OpName %assign_and_preserve_padding_1_sb_mat3x3_f32 "assign_and_preserve_padding_1_sb_mat3x3_f32"
OpName %value_0 "value"
OpName %assign_and_preserve_padding_2_sb_mat4x3_f32 "assign_and_preserve_padding_2_sb_mat4x3_f32"
OpName %value_1 "value"
OpName %assign_and_preserve_padding_3_sb_mat2x3_f16 "assign_and_preserve_padding_3_sb_mat2x3_f16"
OpName %value_2 "value"
OpName %assign_and_preserve_padding_4_sb_mat3x3_f16 "assign_and_preserve_padding_4_sb_mat3x3_f16"
OpName %value_3 "value"
OpName %assign_and_preserve_padding_5_sb_mat4x3_f16 "assign_and_preserve_padding_5_sb_mat4x3_f16"
OpName %value_4 "value"
OpName %assign_and_preserve_padding_6_sb_arr2_vec3_f32 "assign_and_preserve_padding_6_sb_arr2_vec3_f32"
OpName %value_5 "value"
OpName %i "i"
OpName %var_for_index "var_for_index"
OpName %assign_and_preserve_padding_1_sb_struct_inner "assign_and_preserve_padding_1_sb_struct_inner"
OpName %value_0 "value"
OpName %assign_and_preserve_padding_1_sb_array_struct_inner_X "assign_and_preserve_padding_1_sb_array_struct_inner_X"
OpName %assign_and_preserve_padding_7_sb_struct_inner "assign_and_preserve_padding_7_sb_struct_inner"
OpName %value_6 "value"
OpName %assign_and_preserve_padding_7_sb_array_struct_inner_X "assign_and_preserve_padding_7_sb_array_struct_inner_X"
OpName %dest "dest"
OpName %value_1 "value"
OpName %assign_and_preserve_padding_2_sb_array_struct_inner "assign_and_preserve_padding_2_sb_array_struct_inner"
OpName %value_2 "value"
OpName %value_7 "value"
OpName %assign_and_preserve_padding_8_sb_array_struct_inner "assign_and_preserve_padding_8_sb_array_struct_inner"
OpName %value_8 "value"
OpName %i_0 "i"
OpName %var_for_index_1 "var_for_index_1"
OpName %main "main"
@@ -203,303 +215,384 @@
%_ptr_StorageBuffer_sb_block = OpTypePointer StorageBuffer %sb_block
%sb = OpVariable %_ptr_StorageBuffer_sb_block StorageBuffer
%void = OpTypeVoid
%45 = OpTypeFunction %void %_arr_v3float_uint_2
%50 = OpConstantNull %uint
%45 = OpTypeFunction %void %mat2v3float
%uint_0 = OpConstant %uint 0
%uint_17 = OpConstant %uint 17
%52 = OpConstantNull %int
%_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float
%55 = OpConstantNull %uint
%int_1 = OpConstant %int 1
%uint_1 = OpConstant %uint 1
%61 = OpTypeFunction %void %mat3v3float
%uint_20 = OpConstant %uint 20
%int_2 = OpConstant %int 2
%73 = OpTypeFunction %void %mat4v3float
%uint_23 = OpConstant %uint 23
%int_3 = OpConstant %int 3
%uint_3 = OpConstant %uint 3
%88 = OpTypeFunction %void %mat2v3half
%uint_26 = OpConstant %uint 26
%_ptr_StorageBuffer_v3half = OpTypePointer StorageBuffer %v3half
%98 = OpTypeFunction %void %mat3v3half
%uint_29 = OpConstant %uint 29
%109 = OpTypeFunction %void %mat4v3half
%uint_32 = OpConstant %uint 32
%122 = OpTypeFunction %void %_arr_v3float_uint_2
%_ptr_Function_uint = OpTypePointer Function %uint
%bool = OpTypeBool
%_ptr_Function__arr_v3float_uint_2 = OpTypePointer Function %_arr_v3float_uint_2
%65 = OpConstantNull %_arr_v3float_uint_2
%uint_0 = OpConstant %uint 0
%140 = OpConstantNull %_arr_v3float_uint_2
%uint_34 = OpConstant %uint 34
%_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float
%_ptr_Function_v3float = OpTypePointer Function %v3float
%uint_1 = OpConstant %uint 1
%78 = OpTypeFunction %void %Inner
%150 = OpTypeFunction %void %Inner
%uint_36 = OpConstant %uint 36
%_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int
%_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float
%_ptr_StorageBuffer_half = OpTypePointer StorageBuffer %half
%_arr_uint_uint_1 = OpTypeArray %uint %uint_1
%92 = OpTypeFunction %void %_arr_uint_uint_1 %Inner
%164 = OpTypeFunction %void %_arr_uint_uint_1 %Inner
%uint_37 = OpConstant %uint 37
%99 = OpConstantNull %int
%109 = OpTypeFunction %void %_arr_Inner_uint_4
%180 = OpTypeFunction %void %_arr_Inner_uint_4
%_ptr_Function__arr_Inner_uint_4 = OpTypePointer Function %_arr_Inner_uint_4
%125 = OpConstantNull %_arr_Inner_uint_4
%196 = OpConstantNull %_arr_Inner_uint_4
%_ptr_Function_Inner = OpTypePointer Function %Inner
%135 = OpTypeFunction %void
%139 = OpConstantNull %float
%206 = OpTypeFunction %void
%210 = OpConstantNull %float
%_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint
%uint_3 = OpConstant %uint 3
%145 = OpConstantNull %half
%215 = OpConstantNull %half
%_ptr_StorageBuffer_v2float = OpTypePointer StorageBuffer %v2float
%148 = OpConstantNull %v2float
%218 = OpConstantNull %v2float
%uint_5 = OpConstant %uint 5
%_ptr_StorageBuffer_v2int = OpTypePointer StorageBuffer %v2int
%152 = OpConstantNull %v2int
%222 = OpConstantNull %v2int
%uint_6 = OpConstant %uint 6
%_ptr_StorageBuffer_v2uint = OpTypePointer StorageBuffer %v2uint
%156 = OpConstantNull %v2uint
%226 = OpConstantNull %v2uint
%uint_7 = OpConstant %uint 7
%_ptr_StorageBuffer_v2half = OpTypePointer StorageBuffer %v2half
%160 = OpConstantNull %v2half
%230 = OpConstantNull %v2half
%uint_8 = OpConstant %uint 8
%163 = OpConstantNull %v3float
%233 = OpConstantNull %v3float
%uint_9 = OpConstant %uint 9
%_ptr_StorageBuffer_v3int = OpTypePointer StorageBuffer %v3int
%167 = OpConstantNull %v3int
%237 = OpConstantNull %v3int
%uint_10 = OpConstant %uint 10
%_ptr_StorageBuffer_v3uint = OpTypePointer StorageBuffer %v3uint
%171 = OpConstantNull %v3uint
%241 = OpConstantNull %v3uint
%uint_11 = OpConstant %uint 11
%_ptr_StorageBuffer_v3half = OpTypePointer StorageBuffer %v3half
%175 = OpConstantNull %v3half
%244 = OpConstantNull %v3half
%uint_12 = OpConstant %uint 12
%_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float
%179 = OpConstantNull %v4float
%248 = OpConstantNull %v4float
%uint_13 = OpConstant %uint 13
%_ptr_StorageBuffer_v4int = OpTypePointer StorageBuffer %v4int
%183 = OpConstantNull %v4int
%252 = OpConstantNull %v4int
%uint_14 = OpConstant %uint 14
%_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint
%187 = OpConstantNull %v4uint
%256 = OpConstantNull %v4uint
%uint_15 = OpConstant %uint 15
%_ptr_StorageBuffer_v4half = OpTypePointer StorageBuffer %v4half
%191 = OpConstantNull %v4half
%260 = OpConstantNull %v4half
%uint_16 = OpConstant %uint 16
%_ptr_StorageBuffer_mat2v2float = OpTypePointer StorageBuffer %mat2v2float
%195 = OpConstantNull %mat2v2float
%uint_17 = OpConstant %uint 17
%_ptr_StorageBuffer_mat2v3float = OpTypePointer StorageBuffer %mat2v3float
%199 = OpConstantNull %mat2v3float
%264 = OpConstantNull %mat2v2float
%266 = OpConstantNull %mat2v3float
%uint_18 = OpConstant %uint 18
%_ptr_StorageBuffer_mat2v4float = OpTypePointer StorageBuffer %mat2v4float
%203 = OpConstantNull %mat2v4float
%270 = OpConstantNull %mat2v4float
%uint_19 = OpConstant %uint 19
%_ptr_StorageBuffer_mat3v2float = OpTypePointer StorageBuffer %mat3v2float
%207 = OpConstantNull %mat3v2float
%uint_20 = OpConstant %uint 20
%_ptr_StorageBuffer_mat3v3float = OpTypePointer StorageBuffer %mat3v3float
%211 = OpConstantNull %mat3v3float
%274 = OpConstantNull %mat3v2float
%276 = OpConstantNull %mat3v3float
%uint_21 = OpConstant %uint 21
%_ptr_StorageBuffer_mat3v4float = OpTypePointer StorageBuffer %mat3v4float
%215 = OpConstantNull %mat3v4float
%280 = OpConstantNull %mat3v4float
%uint_22 = OpConstant %uint 22
%_ptr_StorageBuffer_mat4v2float = OpTypePointer StorageBuffer %mat4v2float
%219 = OpConstantNull %mat4v2float
%uint_23 = OpConstant %uint 23
%_ptr_StorageBuffer_mat4v3float = OpTypePointer StorageBuffer %mat4v3float
%223 = OpConstantNull %mat4v3float
%284 = OpConstantNull %mat4v2float
%286 = OpConstantNull %mat4v3float
%uint_24 = OpConstant %uint 24
%_ptr_StorageBuffer_mat4v4float = OpTypePointer StorageBuffer %mat4v4float
%227 = OpConstantNull %mat4v4float
%290 = OpConstantNull %mat4v4float
%uint_25 = OpConstant %uint 25
%_ptr_StorageBuffer_mat2v2half = OpTypePointer StorageBuffer %mat2v2half
%231 = OpConstantNull %mat2v2half
%uint_26 = OpConstant %uint 26
%_ptr_StorageBuffer_mat2v3half = OpTypePointer StorageBuffer %mat2v3half
%235 = OpConstantNull %mat2v3half
%294 = OpConstantNull %mat2v2half
%296 = OpConstantNull %mat2v3half
%uint_27 = OpConstant %uint 27
%_ptr_StorageBuffer_mat2v4half = OpTypePointer StorageBuffer %mat2v4half
%239 = OpConstantNull %mat2v4half
%300 = OpConstantNull %mat2v4half
%uint_28 = OpConstant %uint 28
%_ptr_StorageBuffer_mat3v2half = OpTypePointer StorageBuffer %mat3v2half
%243 = OpConstantNull %mat3v2half
%uint_29 = OpConstant %uint 29
%_ptr_StorageBuffer_mat3v3half = OpTypePointer StorageBuffer %mat3v3half
%247 = OpConstantNull %mat3v3half
%304 = OpConstantNull %mat3v2half
%306 = OpConstantNull %mat3v3half
%uint_30 = OpConstant %uint 30
%_ptr_StorageBuffer_mat3v4half = OpTypePointer StorageBuffer %mat3v4half
%251 = OpConstantNull %mat3v4half
%310 = OpConstantNull %mat3v4half
%uint_31 = OpConstant %uint 31
%_ptr_StorageBuffer_mat4v2half = OpTypePointer StorageBuffer %mat4v2half
%255 = OpConstantNull %mat4v2half
%uint_32 = OpConstant %uint 32
%_ptr_StorageBuffer_mat4v3half = OpTypePointer StorageBuffer %mat4v3half
%259 = OpConstantNull %mat4v3half
%314 = OpConstantNull %mat4v2half
%316 = OpConstantNull %mat4v3half
%uint_33 = OpConstant %uint 33
%_ptr_StorageBuffer_mat4v4half = OpTypePointer StorageBuffer %mat4v4half
%263 = OpConstantNull %mat4v4half
%320 = OpConstantNull %mat4v4half
%uint_35 = OpConstant %uint 35
%_ptr_StorageBuffer__arr_mat4v2half_uint_2 = OpTypePointer StorageBuffer %_arr_mat4v2half_uint_2
%268 = OpConstantNull %_arr_mat4v2half_uint_2
%270 = OpConstantNull %Inner
%assign_and_preserve_padding_sb_arr2_vec3_f32 = OpFunction %void None %45
%value = OpFunctionParameter %_arr_v3float_uint_2
%325 = OpConstantNull %_arr_mat4v2half_uint_2
%327 = OpConstantNull %Inner
%assign_and_preserve_padding_sb_mat2x3_f32 = OpFunction %void None %45
%value = OpFunctionParameter %mat2v3float
%49 = OpLabel
%i = OpVariable %_ptr_Function_uint Function %50
%var_for_index = OpVariable %_ptr_Function__arr_v3float_uint_2 Function %65
OpStore %i %50
OpBranch %53
%53 = OpLabel
OpLoopMerge %54 %55 None
OpBranch %56
%56 = OpLabel
%58 = OpLoad %uint %i
%59 = OpULessThan %bool %58 %uint_2
%57 = OpLogicalNot %bool %59
OpSelectionMerge %61 None
OpBranchConditional %57 %62 %61
%62 = OpLabel
OpBranch %54
%61 = OpLabel
OpStore %var_for_index %value
%68 = OpLoad %uint %i
%70 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_34 %68
%71 = OpLoad %uint %i
%73 = OpAccessChain %_ptr_Function_v3float %var_for_index %71
%74 = OpLoad %v3float %73
OpStore %70 %74
OpBranch %55
%55 = OpLabel
%75 = OpLoad %uint %i
%77 = OpIAdd %uint %75 %uint_1
OpStore %i %77
OpBranch %53
%54 = OpLabel
%54 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_17 %52
%56 = OpCompositeExtract %v3float %value 0
OpStore %54 %56
%58 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_17 %int_1
%60 = OpCompositeExtract %v3float %value 1
OpStore %58 %60
OpReturn
OpFunctionEnd
%assign_and_preserve_padding_1_sb_struct_inner = OpFunction %void None %78
%value_0 = OpFunctionParameter %Inner
%81 = OpLabel
%84 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %uint_36 %uint_0
%85 = OpCompositeExtract %int %value_0 0
OpStore %84 %85
%87 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %uint_36 %uint_1
%88 = OpCompositeExtract %float %value_0 1
OpStore %87 %88
%90 = OpAccessChain %_ptr_StorageBuffer_half %sb %uint_0 %uint_36 %uint_2
%91 = OpCompositeExtract %half %value_0 2
OpStore %90 %91
%assign_and_preserve_padding_1_sb_mat3x3_f32 = OpFunction %void None %61
%value_0 = OpFunctionParameter %mat3v3float
%64 = OpLabel
%66 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_20 %52
%67 = OpCompositeExtract %v3float %value_0 0
OpStore %66 %67
%68 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_20 %int_1
%69 = OpCompositeExtract %v3float %value_0 1
OpStore %68 %69
%71 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_20 %int_2
%72 = OpCompositeExtract %v3float %value_0 2
OpStore %71 %72
OpReturn
OpFunctionEnd
%assign_and_preserve_padding_1_sb_array_struct_inner_X = OpFunction %void None %92
%dest = OpFunctionParameter %_arr_uint_uint_1
%value_1 = OpFunctionParameter %Inner
%97 = OpLabel
%100 = OpCompositeExtract %uint %dest 0
%101 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %uint_37 %100 %uint_0
%102 = OpCompositeExtract %int %value_1 0
OpStore %101 %102
%103 = OpCompositeExtract %uint %dest 0
%104 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %uint_37 %103 %uint_1
%105 = OpCompositeExtract %float %value_1 1
OpStore %104 %105
%106 = OpCompositeExtract %uint %dest 0
%107 = OpAccessChain %_ptr_StorageBuffer_half %sb %uint_0 %uint_37 %106 %uint_2
%108 = OpCompositeExtract %half %value_1 2
%assign_and_preserve_padding_2_sb_mat4x3_f32 = OpFunction %void None %73
%value_1 = OpFunctionParameter %mat4v3float
%76 = OpLabel
%78 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_23 %52
%79 = OpCompositeExtract %v3float %value_1 0
OpStore %78 %79
%80 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_23 %int_1
%81 = OpCompositeExtract %v3float %value_1 1
OpStore %80 %81
%82 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_23 %int_2
%83 = OpCompositeExtract %v3float %value_1 2
OpStore %82 %83
%85 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_23 %int_3
%87 = OpCompositeExtract %v3float %value_1 3
OpStore %85 %87
OpReturn
OpFunctionEnd
%assign_and_preserve_padding_3_sb_mat2x3_f16 = OpFunction %void None %88
%value_2 = OpFunctionParameter %mat2v3half
%91 = OpLabel
%94 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %uint_26 %52
%95 = OpCompositeExtract %v3half %value_2 0
OpStore %94 %95
%96 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %uint_26 %int_1
%97 = OpCompositeExtract %v3half %value_2 1
OpStore %96 %97
OpReturn
OpFunctionEnd
%assign_and_preserve_padding_4_sb_mat3x3_f16 = OpFunction %void None %98
%value_3 = OpFunctionParameter %mat3v3half
%101 = OpLabel
%103 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %uint_29 %52
%104 = OpCompositeExtract %v3half %value_3 0
OpStore %103 %104
%105 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %uint_29 %int_1
%106 = OpCompositeExtract %v3half %value_3 1
OpStore %105 %106
%107 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %uint_29 %int_2
%108 = OpCompositeExtract %v3half %value_3 2
OpStore %107 %108
OpReturn
OpFunctionEnd
%assign_and_preserve_padding_2_sb_array_struct_inner = OpFunction %void None %109
%value_2 = OpFunctionParameter %_arr_Inner_uint_4
%assign_and_preserve_padding_5_sb_mat4x3_f16 = OpFunction %void None %109
%value_4 = OpFunctionParameter %mat4v3half
%112 = OpLabel
%i_0 = OpVariable %_ptr_Function_uint Function %50
%var_for_index_1 = OpVariable %_ptr_Function__arr_Inner_uint_4 Function %125
OpStore %i_0 %50
OpBranch %114
%114 = OpLabel
OpLoopMerge %115 %116 None
OpBranch %117
%117 = OpLabel
%119 = OpLoad %uint %i_0
%120 = OpULessThan %bool %119 %uint_4
%118 = OpLogicalNot %bool %120
OpSelectionMerge %121 None
OpBranchConditional %118 %122 %121
%122 = OpLabel
OpBranch %115
%121 = OpLabel
OpStore %var_for_index_1 %value_2
%127 = OpLoad %uint %i_0
%128 = OpCompositeConstruct %_arr_uint_uint_1 %127
%129 = OpLoad %uint %i_0
%131 = OpAccessChain %_ptr_Function_Inner %var_for_index_1 %129
%132 = OpLoad %Inner %131
%126 = OpFunctionCall %void %assign_and_preserve_padding_1_sb_array_struct_inner_X %128 %132
OpBranch %116
%116 = OpLabel
%133 = OpLoad %uint %i_0
%134 = OpIAdd %uint %133 %uint_1
OpStore %i_0 %134
OpBranch %114
%115 = OpLabel
%114 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %uint_32 %52
%115 = OpCompositeExtract %v3half %value_4 0
OpStore %114 %115
%116 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %uint_32 %int_1
%117 = OpCompositeExtract %v3half %value_4 1
OpStore %116 %117
%118 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %uint_32 %int_2
%119 = OpCompositeExtract %v3half %value_4 2
OpStore %118 %119
%120 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %uint_32 %int_3
%121 = OpCompositeExtract %v3half %value_4 3
OpStore %120 %121
OpReturn
OpFunctionEnd
%main = OpFunction %void None %135
%assign_and_preserve_padding_6_sb_arr2_vec3_f32 = OpFunction %void None %122
%value_5 = OpFunctionParameter %_arr_v3float_uint_2
%125 = OpLabel
%i = OpVariable %_ptr_Function_uint Function %55
%var_for_index = OpVariable %_ptr_Function__arr_v3float_uint_2 Function %140
OpStore %i %55
OpBranch %128
%128 = OpLabel
OpLoopMerge %129 %130 None
OpBranch %131
%131 = OpLabel
%133 = OpLoad %uint %i
%134 = OpULessThan %bool %133 %uint_2
%132 = OpLogicalNot %bool %134
OpSelectionMerge %136 None
OpBranchConditional %132 %137 %136
%137 = OpLabel
%138 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %uint_0
OpStore %138 %139
%140 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %uint_1
OpStore %140 %99
%142 = OpAccessChain %_ptr_StorageBuffer_uint %sb %uint_0 %uint_2
OpStore %142 %50
%144 = OpAccessChain %_ptr_StorageBuffer_half %sb %uint_0 %uint_3
OpStore %144 %145
%147 = OpAccessChain %_ptr_StorageBuffer_v2float %sb %uint_0 %uint_4
OpStore %147 %148
%151 = OpAccessChain %_ptr_StorageBuffer_v2int %sb %uint_0 %uint_5
OpStore %151 %152
%155 = OpAccessChain %_ptr_StorageBuffer_v2uint %sb %uint_0 %uint_6
OpStore %155 %156
%159 = OpAccessChain %_ptr_StorageBuffer_v2half %sb %uint_0 %uint_7
OpStore %159 %160
%162 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_8
OpStore %162 %163
%166 = OpAccessChain %_ptr_StorageBuffer_v3int %sb %uint_0 %uint_9
OpStore %166 %167
%170 = OpAccessChain %_ptr_StorageBuffer_v3uint %sb %uint_0 %uint_10
OpStore %170 %171
%174 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %uint_11
OpStore %174 %175
%178 = OpAccessChain %_ptr_StorageBuffer_v4float %sb %uint_0 %uint_12
OpStore %178 %179
%182 = OpAccessChain %_ptr_StorageBuffer_v4int %sb %uint_0 %uint_13
OpStore %182 %183
%186 = OpAccessChain %_ptr_StorageBuffer_v4uint %sb %uint_0 %uint_14
OpStore %186 %187
%190 = OpAccessChain %_ptr_StorageBuffer_v4half %sb %uint_0 %uint_15
OpStore %190 %191
%194 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %sb %uint_0 %uint_16
OpStore %194 %195
%198 = OpAccessChain %_ptr_StorageBuffer_mat2v3float %sb %uint_0 %uint_17
OpStore %198 %199
%202 = OpAccessChain %_ptr_StorageBuffer_mat2v4float %sb %uint_0 %uint_18
OpStore %202 %203
%206 = OpAccessChain %_ptr_StorageBuffer_mat3v2float %sb %uint_0 %uint_19
OpStore %206 %207
%210 = OpAccessChain %_ptr_StorageBuffer_mat3v3float %sb %uint_0 %uint_20
OpStore %210 %211
%214 = OpAccessChain %_ptr_StorageBuffer_mat3v4float %sb %uint_0 %uint_21
OpStore %214 %215
%218 = OpAccessChain %_ptr_StorageBuffer_mat4v2float %sb %uint_0 %uint_22
OpStore %218 %219
%222 = OpAccessChain %_ptr_StorageBuffer_mat4v3float %sb %uint_0 %uint_23
OpStore %222 %223
%226 = OpAccessChain %_ptr_StorageBuffer_mat4v4float %sb %uint_0 %uint_24
OpStore %226 %227
%230 = OpAccessChain %_ptr_StorageBuffer_mat2v2half %sb %uint_0 %uint_25
OpStore %230 %231
%234 = OpAccessChain %_ptr_StorageBuffer_mat2v3half %sb %uint_0 %uint_26
OpStore %234 %235
%238 = OpAccessChain %_ptr_StorageBuffer_mat2v4half %sb %uint_0 %uint_27
OpStore %238 %239
%242 = OpAccessChain %_ptr_StorageBuffer_mat3v2half %sb %uint_0 %uint_28
OpStore %242 %243
%246 = OpAccessChain %_ptr_StorageBuffer_mat3v3half %sb %uint_0 %uint_29
OpStore %246 %247
%250 = OpAccessChain %_ptr_StorageBuffer_mat3v4half %sb %uint_0 %uint_30
OpStore %250 %251
%254 = OpAccessChain %_ptr_StorageBuffer_mat4v2half %sb %uint_0 %uint_31
OpStore %254 %255
%258 = OpAccessChain %_ptr_StorageBuffer_mat4v3half %sb %uint_0 %uint_32
OpStore %258 %259
%262 = OpAccessChain %_ptr_StorageBuffer_mat4v4half %sb %uint_0 %uint_33
OpStore %262 %263
%264 = OpFunctionCall %void %assign_and_preserve_padding_sb_arr2_vec3_f32 %65
%267 = OpAccessChain %_ptr_StorageBuffer__arr_mat4v2half_uint_2 %sb %uint_0 %uint_35
OpStore %267 %268
%269 = OpFunctionCall %void %assign_and_preserve_padding_1_sb_struct_inner %270
%271 = OpFunctionCall %void %assign_and_preserve_padding_2_sb_array_struct_inner %125
OpBranch %129
%136 = OpLabel
OpStore %var_for_index %value_5
%142 = OpLoad %uint %i
%143 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_34 %142
%144 = OpLoad %uint %i
%146 = OpAccessChain %_ptr_Function_v3float %var_for_index %144
%147 = OpLoad %v3float %146
OpStore %143 %147
OpBranch %130
%130 = OpLabel
%148 = OpLoad %uint %i
%149 = OpIAdd %uint %148 %uint_1
OpStore %i %149
OpBranch %128
%129 = OpLabel
OpReturn
OpFunctionEnd
%assign_and_preserve_padding_7_sb_struct_inner = OpFunction %void None %150
%value_6 = OpFunctionParameter %Inner
%153 = OpLabel
%156 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %uint_36 %uint_0
%157 = OpCompositeExtract %int %value_6 0
OpStore %156 %157
%159 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %uint_36 %uint_1
%160 = OpCompositeExtract %float %value_6 1
OpStore %159 %160
%162 = OpAccessChain %_ptr_StorageBuffer_half %sb %uint_0 %uint_36 %uint_2
%163 = OpCompositeExtract %half %value_6 2
OpStore %162 %163
OpReturn
OpFunctionEnd
%assign_and_preserve_padding_7_sb_array_struct_inner_X = OpFunction %void None %164
%dest = OpFunctionParameter %_arr_uint_uint_1
%value_7 = OpFunctionParameter %Inner
%169 = OpLabel
%171 = OpCompositeExtract %uint %dest 0
%172 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %uint_37 %171 %uint_0
%173 = OpCompositeExtract %int %value_7 0
OpStore %172 %173
%174 = OpCompositeExtract %uint %dest 0
%175 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %uint_37 %174 %uint_1
%176 = OpCompositeExtract %float %value_7 1
OpStore %175 %176
%177 = OpCompositeExtract %uint %dest 0
%178 = OpAccessChain %_ptr_StorageBuffer_half %sb %uint_0 %uint_37 %177 %uint_2
%179 = OpCompositeExtract %half %value_7 2
OpStore %178 %179
OpReturn
OpFunctionEnd
%assign_and_preserve_padding_8_sb_array_struct_inner = OpFunction %void None %180
%value_8 = OpFunctionParameter %_arr_Inner_uint_4
%183 = OpLabel
%i_0 = OpVariable %_ptr_Function_uint Function %55
%var_for_index_1 = OpVariable %_ptr_Function__arr_Inner_uint_4 Function %196
OpStore %i_0 %55
OpBranch %185
%185 = OpLabel
OpLoopMerge %186 %187 None
OpBranch %188
%188 = OpLabel
%190 = OpLoad %uint %i_0
%191 = OpULessThan %bool %190 %uint_4
%189 = OpLogicalNot %bool %191
OpSelectionMerge %192 None
OpBranchConditional %189 %193 %192
%193 = OpLabel
OpBranch %186
%192 = OpLabel
OpStore %var_for_index_1 %value_8
%198 = OpLoad %uint %i_0
%199 = OpCompositeConstruct %_arr_uint_uint_1 %198
%200 = OpLoad %uint %i_0
%202 = OpAccessChain %_ptr_Function_Inner %var_for_index_1 %200
%203 = OpLoad %Inner %202
%197 = OpFunctionCall %void %assign_and_preserve_padding_7_sb_array_struct_inner_X %199 %203
OpBranch %187
%187 = OpLabel
%204 = OpLoad %uint %i_0
%205 = OpIAdd %uint %204 %uint_1
OpStore %i_0 %205
OpBranch %185
%186 = OpLabel
OpReturn
OpFunctionEnd
%main = OpFunction %void None %206
%208 = OpLabel
%209 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %uint_0
OpStore %209 %210
%211 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %uint_1
OpStore %211 %52
%213 = OpAccessChain %_ptr_StorageBuffer_uint %sb %uint_0 %uint_2
OpStore %213 %55
%214 = OpAccessChain %_ptr_StorageBuffer_half %sb %uint_0 %uint_3
OpStore %214 %215
%217 = OpAccessChain %_ptr_StorageBuffer_v2float %sb %uint_0 %uint_4
OpStore %217 %218
%221 = OpAccessChain %_ptr_StorageBuffer_v2int %sb %uint_0 %uint_5
OpStore %221 %222
%225 = OpAccessChain %_ptr_StorageBuffer_v2uint %sb %uint_0 %uint_6
OpStore %225 %226
%229 = OpAccessChain %_ptr_StorageBuffer_v2half %sb %uint_0 %uint_7
OpStore %229 %230
%232 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %uint_8
OpStore %232 %233
%236 = OpAccessChain %_ptr_StorageBuffer_v3int %sb %uint_0 %uint_9
OpStore %236 %237
%240 = OpAccessChain %_ptr_StorageBuffer_v3uint %sb %uint_0 %uint_10
OpStore %240 %241
%243 = OpAccessChain %_ptr_StorageBuffer_v3half %sb %uint_0 %uint_11
OpStore %243 %244
%247 = OpAccessChain %_ptr_StorageBuffer_v4float %sb %uint_0 %uint_12
OpStore %247 %248
%251 = OpAccessChain %_ptr_StorageBuffer_v4int %sb %uint_0 %uint_13
OpStore %251 %252
%255 = OpAccessChain %_ptr_StorageBuffer_v4uint %sb %uint_0 %uint_14
OpStore %255 %256
%259 = OpAccessChain %_ptr_StorageBuffer_v4half %sb %uint_0 %uint_15
OpStore %259 %260
%263 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %sb %uint_0 %uint_16
OpStore %263 %264
%265 = OpFunctionCall %void %assign_and_preserve_padding_sb_mat2x3_f32 %266
%269 = OpAccessChain %_ptr_StorageBuffer_mat2v4float %sb %uint_0 %uint_18
OpStore %269 %270
%273 = OpAccessChain %_ptr_StorageBuffer_mat3v2float %sb %uint_0 %uint_19
OpStore %273 %274
%275 = OpFunctionCall %void %assign_and_preserve_padding_1_sb_mat3x3_f32 %276
%279 = OpAccessChain %_ptr_StorageBuffer_mat3v4float %sb %uint_0 %uint_21
OpStore %279 %280
%283 = OpAccessChain %_ptr_StorageBuffer_mat4v2float %sb %uint_0 %uint_22
OpStore %283 %284
%285 = OpFunctionCall %void %assign_and_preserve_padding_2_sb_mat4x3_f32 %286
%289 = OpAccessChain %_ptr_StorageBuffer_mat4v4float %sb %uint_0 %uint_24
OpStore %289 %290
%293 = OpAccessChain %_ptr_StorageBuffer_mat2v2half %sb %uint_0 %uint_25
OpStore %293 %294
%295 = OpFunctionCall %void %assign_and_preserve_padding_3_sb_mat2x3_f16 %296
%299 = OpAccessChain %_ptr_StorageBuffer_mat2v4half %sb %uint_0 %uint_27
OpStore %299 %300
%303 = OpAccessChain %_ptr_StorageBuffer_mat3v2half %sb %uint_0 %uint_28
OpStore %303 %304
%305 = OpFunctionCall %void %assign_and_preserve_padding_4_sb_mat3x3_f16 %306
%309 = OpAccessChain %_ptr_StorageBuffer_mat3v4half %sb %uint_0 %uint_30
OpStore %309 %310
%313 = OpAccessChain %_ptr_StorageBuffer_mat4v2half %sb %uint_0 %uint_31
OpStore %313 %314
%315 = OpFunctionCall %void %assign_and_preserve_padding_5_sb_mat4x3_f16 %316
%319 = OpAccessChain %_ptr_StorageBuffer_mat4v4half %sb %uint_0 %uint_33
OpStore %319 %320
%321 = OpFunctionCall %void %assign_and_preserve_padding_6_sb_arr2_vec3_f32 %140
%324 = OpAccessChain %_ptr_StorageBuffer__arr_mat4v2half_uint_2 %sb %uint_0 %uint_35
OpStore %324 %325
%326 = OpFunctionCall %void %assign_and_preserve_padding_7_sb_struct_inner %327
%328 = OpFunctionCall %void %assign_and_preserve_padding_8_sb_array_struct_inner %196
OpReturn
OpFunctionEnd