Add missing initial clear of stackalloc'd buffers

このコミットが含まれているのは:
Sergio Pedri committed 2022-10-08 00:04:23 +02:00
1 親 69515867e6
コミット 631618d311
3ファイル変更
+7

検索条件に一致するファイルはありません

@@ -99,6 +99,9 @@ partial class ID2D1ShaderGenerator
Span<bool> selectedSimpleInputIndices = stackalloc bool[8];
Span<bool> selectedComplexInputIndices = stackalloc bool[8];
selectedSimpleInputIndices.Clear();
selectedComplexInputIndices.Clear();
// All simple indices must be unique
foreach (int index in inputSimpleIndicesBuilder.WrittenSpan)
{
@@ -76,6 +76,8 @@ partial class ID2D1ShaderGenerator
Span<bool> selectedInputDescriptionIndices = stackalloc bool[8];
selectedInputDescriptionIndices.Clear();
// All input description indices must be unique
foreach (InputDescription inputDescription in inputDescriptionsBuilder.WrittenSpan)
{
@@ -115,6 +115,8 @@ partial class ID2D1ShaderGenerator
Span<bool> selectedResourceTextureIndices = stackalloc bool[16];
selectedResourceTextureIndices.Clear();
// All input description indices must be unique (also take this path for invalid indices)
foreach ((int? index, _) in resourceTextureInfos.WrittenSpan)
{