From a11f6f52350e2cd1ba80fb45a3e69194cdc605b5 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Wed, 1 Jan 2020 20:14:18 -0300 Subject: [PATCH] Fix some spelling mistakes Thanks to LDj3SNuD for spotting these --- Ryujinx.Graphics.Gpu/Engine/MethodDraw.cs | 2 +- Ryujinx.Graphics.Gpu/Engine/MethodResetCounter.cs | 2 +- Ryujinx.Graphics.Gpu/Image/FormatTable.cs | 4 ++-- Ryujinx.Graphics.Gpu/Image/Pool.cs | 4 ++-- Ryujinx.Graphics.Gpu/Image/Texture.cs | 2 +- Ryujinx.Graphics.Gpu/Image/TextureBindingInfo.cs | 2 +- Ryujinx.Graphics.Gpu/Image/TextureManager.cs | 8 ++++---- Ryujinx.Graphics.Gpu/Image/TexturePoolCache.cs | 2 +- Ryujinx.Graphics.Gpu/MacroInterpreter.cs | 2 +- Ryujinx.Graphics.Gpu/Memory/BufferManager.cs | 4 ++-- Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs | 12 ++++++------ Ryujinx.Graphics.Gpu/Memory/RangeList.cs | 10 +++++----- Ryujinx.Graphics.Gpu/NvGpuFifo.cs | 2 +- Ryujinx.Graphics.Gpu/State/GpuState.cs | 2 +- 14 files changed, 29 insertions(+), 29 deletions(-) diff --git a/Ryujinx.Graphics.Gpu/Engine/MethodDraw.cs b/Ryujinx.Graphics.Gpu/Engine/MethodDraw.cs index d2571d3d73..b13cc9cab3 100644 --- a/Ryujinx.Graphics.Gpu/Engine/MethodDraw.cs +++ b/Ryujinx.Graphics.Gpu/Engine/MethodDraw.cs @@ -123,7 +123,7 @@ namespace Ryujinx.Graphics.Gpu.Engine /// /// Sets the index buffer count. - /// This also sets internal state that indicates that the next draw is a indexed draw. + /// This also sets internal state that indicates that the next draw is an indexed draw. /// /// Current GPU state /// Method call argument diff --git a/Ryujinx.Graphics.Gpu/Engine/MethodResetCounter.cs b/Ryujinx.Graphics.Gpu/Engine/MethodResetCounter.cs index 9b46908205..79f8e1e8ae 100644 --- a/Ryujinx.Graphics.Gpu/Engine/MethodResetCounter.cs +++ b/Ryujinx.Graphics.Gpu/Engine/MethodResetCounter.cs @@ -6,7 +6,7 @@ namespace Ryujinx.Graphics.Gpu.Engine partial class Methods { /// - /// Resets the value of a internal GPU counter back to zero. + /// Resets the value of an internal GPU counter back to zero. /// /// Current GPU state /// Method call argument diff --git a/Ryujinx.Graphics.Gpu/Image/FormatTable.cs b/Ryujinx.Graphics.Gpu/Image/FormatTable.cs index 468a1ed5c5..517caecaf8 100644 --- a/Ryujinx.Graphics.Gpu/Image/FormatTable.cs +++ b/Ryujinx.Graphics.Gpu/Image/FormatTable.cs @@ -190,7 +190,7 @@ namespace Ryujinx.Graphics.Gpu.Image }; /// - /// Try getting the texture format from a encoded format integer from the Maxwell texture descriptor. + /// Try getting the texture format from an encoded format integer from the Maxwell texture descriptor. /// /// The encoded format integer from the texture descriptor /// Indicates if the format is a sRGB format @@ -204,7 +204,7 @@ namespace Ryujinx.Graphics.Gpu.Image } /// - /// Try getting the vertex attribute format from a encoded format integer from Maxwell attribute registers. + /// Try getting the vertex attribute format from an encoded format integer from Maxwell attribute registers. /// /// The encoded format integer from the attribute registers /// The output vertex attribute format diff --git a/Ryujinx.Graphics.Gpu/Image/Pool.cs b/Ryujinx.Graphics.Gpu/Image/Pool.cs index e4cefe9cbc..7cf06d0b01 100644 --- a/Ryujinx.Graphics.Gpu/Image/Pool.cs +++ b/Ryujinx.Graphics.Gpu/Image/Pool.cs @@ -6,7 +6,7 @@ namespace Ryujinx.Graphics.Gpu.Image /// /// Represents a pool of GPU resources, such as samplers or textures. /// - /// GPU resource type + /// Type of the GPU resource abstract class Pool : IDisposable { protected const int DescriptorSize = 0x20; @@ -57,7 +57,7 @@ namespace Ryujinx.Graphics.Gpu.Image /// /// Synchronizes host memory with guest memory. - /// This causes a invalidation of pool entries, + /// This causes invalidation of pool entries, /// if a modification of entries by the CPU is detected. /// public void SynchronizeMemory() diff --git a/Ryujinx.Graphics.Gpu/Image/Texture.cs b/Ryujinx.Graphics.Gpu/Image/Texture.cs index be3d622f9c..e33de1fa4e 100644 --- a/Ryujinx.Graphics.Gpu/Image/Texture.cs +++ b/Ryujinx.Graphics.Gpu/Image/Texture.cs @@ -365,7 +365,7 @@ namespace Ryujinx.Graphics.Gpu.Image /// This causes the texture data to be written back to guest memory. /// If the texture was written by the GPU, this includes all modification made by the GPU /// up to this point. - /// Be aware that this is a expensive operation, avoid calling it unless strictly needed. + /// Be aware that this is an expensive operation, avoid calling it unless strictly needed. /// This may cause data corruption if the memory is already being used for something else on the CPU side. /// public void Flush() diff --git a/Ryujinx.Graphics.Gpu/Image/TextureBindingInfo.cs b/Ryujinx.Graphics.Gpu/Image/TextureBindingInfo.cs index 91a5fcf60e..b4793f58ff 100644 --- a/Ryujinx.Graphics.Gpu/Image/TextureBindingInfo.cs +++ b/Ryujinx.Graphics.Gpu/Image/TextureBindingInfo.cs @@ -15,7 +15,7 @@ namespace Ryujinx.Graphics.Gpu.Image /// /// Shader texture handle. - /// This is a index into the texture constant buffer. + /// This is an index into the texture constant buffer. /// public int Handle { get; } diff --git a/Ryujinx.Graphics.Gpu/Image/TextureManager.cs b/Ryujinx.Graphics.Gpu/Image/TextureManager.cs index 387e908d69..1572719118 100644 --- a/Ryujinx.Graphics.Gpu/Image/TextureManager.cs +++ b/Ryujinx.Graphics.Gpu/Image/TextureManager.cs @@ -245,7 +245,7 @@ namespace Ryujinx.Graphics.Gpu.Image } /// - /// Tries to find a existing texture, or create a new one if not found. + /// Tries to find an existing texture, or create a new one if not found. /// /// Copy texture to find or create /// The texture @@ -298,7 +298,7 @@ namespace Ryujinx.Graphics.Gpu.Image } /// - /// Tries to find a existing texture, or create a new one if not found. + /// Tries to find an existing texture, or create a new one if not found. /// /// Color buffer texture to find or create /// Number of samples in the X direction, for MSAA @@ -381,7 +381,7 @@ namespace Ryujinx.Graphics.Gpu.Image } /// - /// Tries to find a existing texture, or create a new one if not found. + /// Tries to find an existing texture, or create a new one if not found. /// /// Depth-stencil buffer texture to find or create /// Size of the depth-stencil texture @@ -430,7 +430,7 @@ namespace Ryujinx.Graphics.Gpu.Image } /// - /// Tries to find a existing texture, or create a new one if not found. + /// Tries to find an existing texture, or create a new one if not found. /// /// Texture information of the texture to be found or created /// The texture search flags, defines texture comparison rules diff --git a/Ryujinx.Graphics.Gpu/Image/TexturePoolCache.cs b/Ryujinx.Graphics.Gpu/Image/TexturePoolCache.cs index 6c249ca65b..2e5c2b5d3c 100644 --- a/Ryujinx.Graphics.Gpu/Image/TexturePoolCache.cs +++ b/Ryujinx.Graphics.Gpu/Image/TexturePoolCache.cs @@ -18,7 +18,7 @@ namespace Ryujinx.Graphics.Gpu.Image /// /// Constructs a new instance of the texture pool. /// - /// + /// GPU context that the texture pool belongs to public TexturePoolCache(GpuContext context) { _context = context; diff --git a/Ryujinx.Graphics.Gpu/MacroInterpreter.cs b/Ryujinx.Graphics.Gpu/MacroInterpreter.cs index 63a5986ac4..c853da73fb 100644 --- a/Ryujinx.Graphics.Gpu/MacroInterpreter.cs +++ b/Ryujinx.Graphics.Gpu/MacroInterpreter.cs @@ -329,7 +329,7 @@ namespace Ryujinx.Graphics.Gpu } /// - /// Gets the result of a Arithmetic and Logic operation using registers. + /// Gets the result of an Arithmetic and Logic operation using registers. /// /// Arithmetic and Logic unit operation with registers /// First operand value diff --git a/Ryujinx.Graphics.Gpu/Memory/BufferManager.cs b/Ryujinx.Graphics.Gpu/Memory/BufferManager.cs index de56bacaf4..0acbd94ad0 100644 --- a/Ryujinx.Graphics.Gpu/Memory/BufferManager.cs +++ b/Ryujinx.Graphics.Gpu/Memory/BufferManager.cs @@ -368,7 +368,7 @@ namespace Ryujinx.Graphics.Gpu.Memory /// Gets the address of the compute uniform buffer currently bound at the given index. /// /// Index of the uniform buffer binding - /// The uniform buffer address, or a undefined value if the buffer is not currently bound + /// The uniform buffer address, or an undefined value if the buffer is not currently bound public ulong GetComputeUniformBufferAddress(int index) { return _cpUniformBuffers.Buffers[index].Address; @@ -379,7 +379,7 @@ namespace Ryujinx.Graphics.Gpu.Memory /// /// Index of the shader stage /// Index of the uniform buffer binding - /// The uniform buffer address, or a undefined value if the buffer is not currently bound + /// The uniform buffer address, or an undefined value if the buffer is not currently bound public ulong GetGraphicsUniformBufferAddress(int stage, int index) { return _gpUniformBuffers[stage].Buffers[index].Address; diff --git a/Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs b/Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs index d0171b4205..2fc315c3cd 100644 --- a/Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs +++ b/Ryujinx.Graphics.Gpu/Memory/MemoryManager.cs @@ -65,7 +65,7 @@ namespace Ryujinx.Graphics.Gpu.Memory /// The memory is automatically allocated by the memory manager. /// /// CPU virtual address to map into - /// Mapping size in bytes + /// Size in bytes of the mapping /// GPU virtual address where the range was mapped, or an all ones mask in case of failure public ulong Map(ulong pa, ulong size) { @@ -91,7 +91,7 @@ namespace Ryujinx.Graphics.Gpu.Memory /// This also ensures that the mapping is always done in the first 4GB of GPU address space. /// /// CPU virtual address to map into - /// Mapping size in bytes + /// Size in bytes of the mapping /// GPU virtual address where the range was mapped, or an all ones mask in case of failure public ulong MapLow(ulong pa, ulong size) { @@ -120,7 +120,7 @@ namespace Ryujinx.Graphics.Gpu.Memory /// This prevents the reserved region from being used for memory allocation for map. /// /// GPU virtual address to reserve - /// Reservation size in bytes + /// Size in bytes of the reservation /// GPU virtual address of the reservation, or an all ones mask in case of failure public ulong ReserveFixed(ulong va, ulong size) { @@ -146,7 +146,7 @@ namespace Ryujinx.Graphics.Gpu.Memory /// /// Reserves memory at any GPU memory location. /// - /// Reservation size in bytes + /// Size in bytes of the reservation /// Reservation address alignment in bytes /// GPU virtual address of the reservation, or an all ones mask in case of failure public ulong Reserve(ulong size, ulong alignment) @@ -184,7 +184,7 @@ namespace Ryujinx.Graphics.Gpu.Memory } /// - /// Gets the address of a unused (free) region of the specified size. + /// Gets the address of an unused (free) region of the specified size. /// /// Size of the region in bytes /// Required alignment of the region address in bytes @@ -250,7 +250,7 @@ namespace Ryujinx.Graphics.Gpu.Memory } /// - /// Translated a GPU virtual address to a CPU virtual address. + /// Translates a GPU virtual address to a CPU virtual address. /// /// GPU virtual address to be translated /// CPU virtual address diff --git a/Ryujinx.Graphics.Gpu/Memory/RangeList.cs b/Ryujinx.Graphics.Gpu/Memory/RangeList.cs index d65814b3f1..6af440c054 100644 --- a/Ryujinx.Graphics.Gpu/Memory/RangeList.cs +++ b/Ryujinx.Graphics.Gpu/Memory/RangeList.cs @@ -39,7 +39,7 @@ namespace Ryujinx.Graphics.Gpu.Memory } /// - /// Removes a item from the list. + /// Removes an item from the list. /// /// The item to be removed /// True if the item was removed, or false if it was not found @@ -97,7 +97,7 @@ namespace Ryujinx.Graphics.Gpu.Memory /// It only ensures that the item returned overlaps the specified memory range. /// /// Start address of the range - /// Size in bytes or the rangee + /// Size in bytes of the range /// The overlapping item, or the default value for the type if none found public T FindFirstOverlap(ulong address, ulong size) { @@ -126,7 +126,7 @@ namespace Ryujinx.Graphics.Gpu.Memory /// Gets all items on the list overlapping the specified memory range. /// /// Start address of the range - /// Size in bytes or the rangee + /// Size in bytes of the range /// Output array where matches will be written. It is automatically resized to fit the results /// The number of overlapping items found public int FindOverlaps(ulong address, ulong size, ref T[] output) @@ -184,7 +184,7 @@ namespace Ryujinx.Graphics.Gpu.Memory /// This method is faster than the regular method to find all overlaps. /// /// Start address of the range - /// Size in bytes or the rangee + /// Size in bytes of the range /// Output array where matches will be written. It is automatically resized to fit the results /// The number of overlapping items found public int FindOverlapsNonOverlapping(ulong address, ulong size, ref T[] output) @@ -297,7 +297,7 @@ namespace Ryujinx.Graphics.Gpu.Memory /// Performs binary search for items overlapping a given memory range. /// /// Start address of the range - /// Size of the range in bytes + /// Size in bytes of the range /// List index of the item, or complement index of nearest item with lower value on the list private int BinarySearch(ulong address, ulong size) { diff --git a/Ryujinx.Graphics.Gpu/NvGpuFifo.cs b/Ryujinx.Graphics.Gpu/NvGpuFifo.cs index 9e15453340..853e5dfdd3 100644 --- a/Ryujinx.Graphics.Gpu/NvGpuFifo.cs +++ b/Ryujinx.Graphics.Gpu/NvGpuFifo.cs @@ -72,7 +72,7 @@ namespace Ryujinx.Graphics.Gpu } /// - /// Pushes a argument to the macro call argument FIFO. + /// Pushes an argument to the macro call argument FIFO. /// /// Argument to be pushed public void PushArgument(int argument) diff --git a/Ryujinx.Graphics.Gpu/State/GpuState.cs b/Ryujinx.Graphics.Gpu/State/GpuState.cs index f673d296c8..c6052f4a65 100644 --- a/Ryujinx.Graphics.Gpu/State/GpuState.cs +++ b/Ryujinx.Graphics.Gpu/State/GpuState.cs @@ -94,7 +94,7 @@ namespace Ryujinx.Graphics.Gpu.State } /// - /// Writes a offset value at the uniform buffer offset register. + /// Writes an offset value at the uniform buffer offset register. /// /// The offset to be written public void SetUniformBufferOffset(int offset)