aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2019-12-30 14:44:22 -0300
committerThog <thog@protonmail.com>2020-01-09 02:13:00 +0100
commitbacb278dc11292a9a851669a9056b9ea5bb77f3a (patch)
tree734acc3b3f7e579fde40668cb36779412d81a031
parentc5b908891471bfc5c33aad60eb6ad981eb6856db (diff)
Fix typos pointed out by LDj3SNuD
-rw-r--r--Ryujinx.Graphics.Gpu/Image/Texture.cs4
-rw-r--r--Ryujinx.Graphics.Gpu/Image/TextureDescriptor.cs2
-rw-r--r--Ryujinx.Graphics.Gpu/Image/TextureInfo.cs2
-rw-r--r--Ryujinx.Graphics.Gpu/Image/TextureManager.cs6
-rw-r--r--Ryujinx.Graphics.Gpu/Image/TexturePool.cs2
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
}
/// <summary>
- /// 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.
/// </summary>
@@ -695,7 +695,7 @@ namespace Ryujinx.Graphics.Gpu.Image
/// <summary>
/// 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.
/// </summary>
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
/// <summary>
/// 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.
/// </summary>
/// <returns>The texture coordinates normalized flag</returns>
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
/// <param name="width">The width of the texture</param>
/// <param name="height">The height or the texture</param>
/// <param name="depthOrLayers">The depth or layers count of the texture</param>
- /// <param name="levels">The amount if mipmap levels of the texture</param>
+ /// <param name="levels">The amount of mipmap levels of the texture</param>
/// <param name="samplesInX">The number of samples in the X direction for multisample textures, should be 1 otherwise</param>
/// <param name="samplesInY">The number of samples in the Y direction for multisample textures, should be 1 otherwise</param>
/// <param name="stride">The stride for linear textures</param>
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
/// </summary>
/// <param name="gpuVa">The start GPU virtual address of the sampler pool</param>
/// <param name="maximumId">The maximum ID of the sampler pool</param>
- /// <param name="samplerIndex">The indexing type of the sampler</param>
+ /// <param name="samplerIndex">The indexing type of the sampler pool</param>
public void SetComputeSamplerPool(ulong gpuVa, int maximumId, SamplerIndex samplerIndex)
{
_cpBindingsManager.SetSamplerPool(gpuVa, maximumId, samplerIndex);
@@ -131,7 +131,7 @@ namespace Ryujinx.Graphics.Gpu.Image
/// </summary>
/// <param name="gpuVa">The start GPU virtual address of the sampler pool</param>
/// <param name="maximumId">The maximum ID of the sampler pool</param>
- /// <param name="samplerIndex">The indexing type of the sampler</param>
+ /// <param name="samplerIndex">The indexing type of the sampler pool</param>
public void SetGraphicsSamplerPool(ulong gpuVa, int maximumId, SamplerIndex samplerIndex)
{
_gpBindingsManager.SetSamplerPool(gpuVa, maximumId, samplerIndex);
@@ -734,7 +734,7 @@ namespace Ryujinx.Graphics.Gpu.Image
}
/// <summary>
- /// 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.
/// </summary>
/// <param name="address">The range start address</param>
/// <param name="size">The range size</param>
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.
/// </summary>
/// <param name="component">The swizzle component to check</param>
- /// <returns>True if the swizzle component is equal to the red or blue, false otherwise</returns>
+ /// <returns>True if the swizzle component is equal to the red or green, false otherwise</returns>
private static bool IsRG(SwizzleComponent component)
{
return component == SwizzleComponent.Red ||