From 0a5ec9e82d3fb8978e883beeeef1d7aa5d1d675d Mon Sep 17 00:00:00 2001 From: cosmonaut Date: Fri, 23 Feb 2024 10:43:22 -0800 Subject: [PATCH] rename cpuBuffer to transferBuffer in Font --- src/Graphics/Font/Font.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Graphics/Font/Font.cs b/src/Graphics/Font/Font.cs index e9bd7f8..4205696 100644 --- a/src/Graphics/Font/Font.cs +++ b/src/Graphics/Font/Font.cs @@ -51,22 +51,22 @@ namespace MoonWorks.Graphics.Font ImageUtils.ImageInfoFromFile(imagePath, out var width, out var height, out var sizeInBytes); var texture = Texture.CreateTexture2D(graphicsDevice, width, height, TextureFormat.R8G8B8A8, TextureUsageFlags.Sampler); - var cpuBuffer = new TransferBuffer(graphicsDevice, sizeInBytes); + var transferBuffer = new TransferBuffer(graphicsDevice, sizeInBytes); ImageUtils.DecodeIntoTransferBuffer( imagePath, - cpuBuffer, + transferBuffer, 0, SetDataOptions.Overwrite ); commandBuffer.BeginCopyPass(); commandBuffer.UploadToTexture( - cpuBuffer, + transferBuffer, texture ); commandBuffer.EndCopyPass(); - cpuBuffer.Dispose(); + transferBuffer.Dispose(); NativeMemory.Free(fontFileByteBuffer); NativeMemory.Free(atlasFileByteBuffer);