We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 86dc363 + 10406e0 commit d4f4b31Copy full SHA for d4f4b31
src/ComputeSharp.D2D1.UI/Extensions/ID2D1EffectExtensions.cs
@@ -57,6 +57,8 @@ public static T GetConstantBuffer<T>(this ref ID2D1Effect d2D1Effect)
57
58
shader.InitializeFromDispatchData(buffer.AsSpan(0, constantBufferSize));
59
60
+ ArrayPool<byte>.Shared.Return(buffer);
61
+
62
return shader;
63
}
64
0 commit comments