diff --git a/src/Lab/Experiments/WebGPUTriangle/Program.cs b/src/Lab/Experiments/WebGPUTriangle/Program.cs index 2a8c44900c..9e6c0c192f 100644 --- a/src/Lab/Experiments/WebGPUTriangle/Program.cs +++ b/src/Lab/Experiments/WebGPUTriangle/Program.cs @@ -16,7 +16,7 @@ public static unsafe class Program { // ReSharper disable once InconsistentNaming private static WebGPU wgpu = null!; - private static WebGPUDisposal? webGpuDisposal = null!; + private static WebGPUDisposal _WebGpuDisposal = null!; private static IWindow? _Window; private static Surface* _Surface; @@ -71,7 +71,7 @@ private static void WindowOnLoad() { wgpu = WebGPU.GetApi(); - webGpuDisposal = new WebGPUDisposal(wgpu); + _WebGpuDisposal = new WebGPUDisposal(wgpu); _Surface = _Window.CreateWebGPUSurface(wgpu); @@ -207,11 +207,11 @@ private static void WindowOnLoad() private static void WindowClosing() { - webGpuDisposal.Dispose(_Shader); - webGpuDisposal.Dispose(_Pipeline); - webGpuDisposal.Dispose(_Device); - webGpuDisposal.Dispose(_Adapter); - webGpuDisposal.Dispose(_Surface); + _WebGpuDisposal.Dispose(_Shader); + _WebGpuDisposal.Dispose(_Pipeline); + _WebGpuDisposal.Dispose(_Device); + _WebGpuDisposal.Dispose(_Adapter); + _WebGpuDisposal.Dispose(_Surface); wgpu.Dispose(); } @@ -287,7 +287,7 @@ private static void WindowOnRender(double delta) wgpu.RenderPassEncoderSetPipeline(renderPass, _Pipeline); wgpu.RenderPassEncoderDraw(renderPass, 3, 1, 0, 0); wgpu.RenderPassEncoderEnd(renderPass); - webGpuDisposal.Dispose(nextTexture); + _WebGpuDisposal.Dispose(nextTexture); var queue = wgpu.DeviceGetQueue(_Device);