diff --git a/src/ComputeSharp/Graphics/GraphicsDevice.cs b/src/ComputeSharp/Graphics/GraphicsDevice.cs index 53f6af10..ea9edbc0 100644 --- a/src/ComputeSharp/Graphics/GraphicsDevice.cs +++ b/src/ComputeSharp/Graphics/GraphicsDevice.cs @@ -118,7 +118,7 @@ public sealed unsafe partial class GraphicsDevice : NativeObject /// when the device is collected. But, due to the fact that could happen at any time, a list is required to guarantee /// the additional references added by the native objects in the pipeline model can be released immediately. /// - private List cachedPipelineData; + private readonly List cachedPipelineData; /// /// Raised whenever the device is lost.