Return rented array to array pool

このコミットが含まれているのは:
Sergio Pedri committed 2023-09-21 23:04:01 +02:00
1 親 86dc36364f
コミット 10406e0870
1ファイル変更
+2
+2
ファイルの表示
@@ -57,6 +57,8 @@ internal static unsafe class ID2D1EffectExtensions
shader.InitializeFromDispatchData(buffer.AsSpan(0, constantBufferSize));
ArrayPool<byte>.Shared.Return(buffer);
return shader;
}