From 62e3f3538d6016dd6ebd9864a1adadeba0488948 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Wed, 3 Aug 2022 23:31:44 +0200 Subject: [PATCH] Add missing readonly modifier --- src/ComputeSharp/Graphics/GraphicsDevice.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.