From bacb278dc11292a9a851669a9056b9ea5bb77f3a Mon Sep 17 00:00:00 2001 From: gdkchan Date: Mon, 30 Dec 2019 14:44:22 -0300 Subject: [PATCH] Fix typos pointed out by LDj3SNuD --- Ryujinx.Graphics.Gpu/Image/Texture.cs | 4 ++-- Ryujinx.Graphics.Gpu/Image/TextureDescriptor.cs | 2 +- Ryujinx.Graphics.Gpu/Image/TextureInfo.cs | 2 +- Ryujinx.Graphics.Gpu/Image/TextureManager.cs | 6 +++--- Ryujinx.Graphics.Gpu/Image/TexturePool.cs | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Ryujinx.Graphics.Gpu/Image/Texture.cs b/Ryujinx.Graphics.Gpu/Image/Texture.cs index 9e5bea90..65697868 100644 --- a/Ryujinx.Graphics.Gpu/Image/Texture.cs +++ b/Ryujinx.Graphics.Gpu/Image/Texture.cs @@ -650,7 +650,7 @@ namespace Ryujinx.Graphics.Gpu.Image } /// - /// Check it's possible to create a view with the specified layout. + /// Check if it's possible to create a view with the specified layout. /// The layout information is composed of the Stride for linear textures, or GOB block size /// for block linear textures. /// @@ -695,7 +695,7 @@ namespace Ryujinx.Graphics.Gpu.Image /// /// Checks if the view format is compatible with this texture format. - /// In general, the formats are considered compatible if the bytes per pixel value is equal, + /// In general, the formats are considered compatible if the bytes per pixel values are equal, /// but there are more complex rules for some formats, like compressed or depth-stencil formats. /// This follows the host API copy compatibility rules. /// diff --git a/Ryujinx.Graphics.Gpu/Image/TextureDescriptor.cs b/Ryujinx.Graphics.Gpu/Image/TextureDescriptor.cs index 5dbd1a08..aebf4abf 100644 --- a/Ryujinx.Graphics.Gpu/Image/TextureDescriptor.cs +++ b/Ryujinx.Graphics.Gpu/Image/TextureDescriptor.cs @@ -188,7 +188,7 @@ namespace Ryujinx.Graphics.Gpu.Image /// /// Unpacks the texture coordinates normalized flag. /// When this is true, texture coordinates are expected to be in the [0, 1] range on the shader. - /// WHen this is false, texture coordinates are expected to be in the [0, W], [0, H] and [0, D] range. + /// When this is false, texture coordinates are expected to be in the [0, W], [0, H] and [0, D] range. /// It must be set to false (by the guest driver) for rectangle textures. /// /// The texture coordinates normalized flag diff --git a/Ryujinx.Graphics.Gpu/Image/TextureInfo.cs b/Ryujinx.Graphics.Gpu/Image/TextureInfo.cs index 784ff0e9..2bcafd72 100644 --- a/Ryujinx.Graphics.Gpu/Image/TextureInfo.cs +++ b/Ryujinx.Graphics.Gpu/Image/TextureInfo.cs @@ -112,7 +112,7 @@ namespace Ryujinx.Graphics.Gpu.Image /// The width of the texture /// The height or the texture /// The depth or layers count of the texture - /// The amount if mipmap levels of the texture + /// The amount of mipmap levels of the texture /// The number of samples in the X direction for multisample textures, should be 1 otherwise /// The number of samples in the Y direction for multisample textures, should be 1 otherwise /// The stride for linear textures diff --git a/Ryujinx.Graphics.Gpu/Image/TextureManager.cs b/Ryujinx.Graphics.Gpu/Image/TextureManager.cs index 4f6d5e58..ecc5dc51 100644 --- a/Ryujinx.Graphics.Gpu/Image/TextureManager.cs +++ b/Ryujinx.Graphics.Gpu/Image/TextureManager.cs @@ -120,7 +120,7 @@ namespace Ryujinx.Graphics.Gpu.Image /// /// The start GPU virtual address of the sampler pool /// The maximum ID of the sampler pool - /// The indexing type of the sampler + /// The indexing type of the sampler pool public void SetComputeSamplerPool(ulong gpuVa, int maximumId, SamplerIndex samplerIndex) { _cpBindingsManager.SetSamplerPool(gpuVa, maximumId, samplerIndex); @@ -131,7 +131,7 @@ namespace Ryujinx.Graphics.Gpu.Image /// /// The start GPU virtual address of the sampler pool /// The maximum ID of the sampler pool - /// The indexing type of the sampler + /// The indexing type of the sampler pool public void SetGraphicsSamplerPool(ulong gpuVa, int maximumId, SamplerIndex samplerIndex) { _gpBindingsManager.SetSamplerPool(gpuVa, maximumId, samplerIndex); @@ -734,7 +734,7 @@ namespace Ryujinx.Graphics.Gpu.Image } /// - /// Flushes textures in the cache inside a given range that have been modified since the last call. + /// Flushes the textures in the cache inside a given range that have been modified since the last call. /// /// The range start address /// The range size diff --git a/Ryujinx.Graphics.Gpu/Image/TexturePool.cs b/Ryujinx.Graphics.Gpu/Image/TexturePool.cs index 91f6338f..c45df96e 100644 --- a/Ryujinx.Graphics.Gpu/Image/TexturePool.cs +++ b/Ryujinx.Graphics.Gpu/Image/TexturePool.cs @@ -245,7 +245,7 @@ namespace Ryujinx.Graphics.Gpu.Image /// Checks if the swizzle component is equal to the red or green channels. /// /// The swizzle component to check - /// True if the swizzle component is equal to the red or blue, false otherwise + /// True if the swizzle component is equal to the red or green, false otherwise private static bool IsRG(SwizzleComponent component) { return component == SwizzleComponent.Red ||