diff --git a/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.Properties.cs b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.Properties.cs
index 4de7f2ab..78d6c48f 100644
--- a/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.Properties.cs
+++ b/src/ComputeSharp.D2D1/Shaders/Interop/Effects/PixelShaderEffect.Properties.cs
@@ -136,14 +136,14 @@ unsafe partial struct PixelShaderEffect
///
/// Gets the resource texture manager for a given index.
///
- /// The index of the resource texture manager to get.
+ /// The index of the resource texture to get the manager for.
/// A pointer to a variable that stores the data that this function retrieves on the property.
/// The number of bytes in the property to retrieve.
/// A optional pointer to a variable that stores the actual number of bytes retrieved on the property.
/// The for the operation.
- private int GetResourceTextureManagerAtIndex(int index, byte* data, uint dataSize, uint* actualSize)
+ private int GetResourceTextureManagerAtIndex(int resourceTextureIndex, byte* data, uint dataSize, uint* actualSize)
{
- if (!IsResourceTextureManagerIndexValid(index, out _))
+ if (!IsResourceTextureManagerIndexValid(resourceTextureIndex, out _))
{
return E.E_INVALIDARG;
}
@@ -158,7 +158,7 @@ unsafe partial struct PixelShaderEffect
return E.E_INVALIDARG;
}
- using ComPtr resourceTextureManager = this.resourceTextureManagerBuffer[index];
+ using ComPtr resourceTextureManager = this.resourceTextureManagerBuffer[resourceTextureIndex];
resourceTextureManager.CopyTo((ID2D1ResourceTextureManager**)data);
@@ -173,13 +173,13 @@ unsafe partial struct PixelShaderEffect
///
/// Sets the resource texture manager for a given index.
///
- /// The index of the resource texture manager to set.
+ /// The index of the resource texture to set the manager for.
/// A pointer to the data to be set on the property.
/// The number of bytes in the property set by the function.
/// The for the operation.
- private int SetResourceTextureManagerAtIndex(int index, byte* data, uint dataSize)
+ private int SetResourceTextureManagerAtIndex(int resourceTextureIndex, byte* data, uint dataSize)
{
- if (!IsResourceTextureManagerIndexValid(index, out uint dimensions))
+ if (!IsResourceTextureManagerIndexValid(resourceTextureIndex, out uint dimensions))
{
return E.E_INVALIDARG;
}
@@ -229,7 +229,7 @@ unsafe partial struct PixelShaderEffect
}
// Store the resource texture manager into the buffer
- this.resourceTextureManagerBuffer[index] = resourceTextureManager.Detach();
+ this.resourceTextureManagerBuffer[resourceTextureIndex] = resourceTextureManager.Detach();
return S.S_OK;
}
@@ -237,14 +237,14 @@ unsafe partial struct PixelShaderEffect
///
/// Checks whether a given index for a resource texture manager is valid for the current effect.
///
- /// The resource texture manager index to validate.
+ /// The index of the resource texture to validate.
/// The number of dimensions for the resource texture at the gven index.
- /// Whether or not is valid for the current effect.
- private bool IsResourceTextureManagerIndexValid(int index, out uint dimensions)
+ /// Whether or not is valid for the current effect.
+ private bool IsResourceTextureManagerIndexValid(int resourceTextureIndex, out uint dimensions)
{
foreach (ref readonly D2D1ResourceTextureDescription resourceTextureDescription in new ReadOnlySpan(this.resourceTextureDescriptions, this.resourceTextureDescriptionCount))
{
- if (resourceTextureDescription.Index == index)
+ if (resourceTextureDescription.Index == resourceTextureIndex)
{
dimensions = (uint)resourceTextureDescription.Dimensions;