diff --git a/samples/ComputeSharp.ImageProcessing/Processors/HlslBokehBlurProcessor{TPixel}.cs b/samples/ComputeSharp.ImageProcessing/Processors/HlslBokehBlurProcessor{TPixel}.cs
index 25d0d23b..7fb37dd0 100644
--- a/samples/ComputeSharp.ImageProcessing/Processors/HlslBokehBlurProcessor{TPixel}.cs
+++ b/samples/ComputeSharp.ImageProcessing/Processors/HlslBokehBlurProcessor{TPixel}.cs
@@ -288,13 +288,13 @@ namespace ComputeSharp.BokehBlur.Processors
///
/// Performs a vertical 1D complex convolution with the specified parameters.
///
- /// The source to read data from.
+ /// The source to read data from.
/// The target to write the real results to.
/// The target to write the imaginary results to.
/// The with the values for the current complex kernel.
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private void ApplyVerticalConvolution(
- ReadWriteTexture2D source,
+ IReadWriteTexture2D source,
ReadWriteTexture2D reals,
ReadWriteTexture2D imaginaries,
ReadOnlyBuffer kernel)
@@ -324,7 +324,7 @@ namespace ComputeSharp.BokehBlur.Processors
public int maxX;
public int kernelLength;
- public ReadWriteTexture2D source;
+ public IReadWriteTexture2D source;
public ReadWriteTexture2D reals;
public ReadWriteTexture2D imaginaries;
public ReadOnlyBuffer kernel;
@@ -431,9 +431,9 @@ namespace ComputeSharp.BokehBlur.Processors
///
/// Applies the gamma highlight pass to compute the final pixel values for a target image.
///
- /// The source instance to modify.
+ /// The source instance to modify.
[Pure]
- private void ApplyGammaHighlight(ReadWriteTexture2D source)
+ private void ApplyGammaHighlight(IReadWriteTexture2D source)
{
Gpu.Default.For(source.Height, new GammaHighlightProcessor(source.Width, source));
}
@@ -446,7 +446,7 @@ namespace ComputeSharp.BokehBlur.Processors
{
public readonly int width;
- public readonly ReadWriteTexture2D source;
+ public readonly IReadWriteTexture2D source;
///
public void Execute(ThreadIds ids)
@@ -466,11 +466,11 @@ namespace ComputeSharp.BokehBlur.Processors
/// Applies the inverse gamma highlight pass to compute the final pixel values for a target image.
///
/// The source instance to read from.
- /// The target instance to write to.
+ /// The target instance to write to.
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private void ApplyInverseGammaExposure(
ReadWriteTexture2D source,
- ReadWriteTexture2D target)
+ IReadWriteTexture2D target)
{
Gpu.Default.For(source.Height, new InverseGammaHighlightProcessor(source.Width, source, target));
}
@@ -484,7 +484,7 @@ namespace ComputeSharp.BokehBlur.Processors
public readonly int width;
public readonly ReadWriteTexture2D source;
- public readonly ReadWriteTexture2D target;
+ public readonly IReadWriteTexture2D target;
///
public void Execute(ThreadIds ids)
diff --git a/samples/ComputeSharp.ImageProcessing/Processors/HlslGaussianBlurProcessor{TPixel}.cs b/samples/ComputeSharp.ImageProcessing/Processors/HlslGaussianBlurProcessor{TPixel}.cs
index 5f1fa2f5..bc72a6a8 100644
--- a/samples/ComputeSharp.ImageProcessing/Processors/HlslGaussianBlurProcessor{TPixel}.cs
+++ b/samples/ComputeSharp.ImageProcessing/Processors/HlslGaussianBlurProcessor{TPixel}.cs
@@ -107,12 +107,12 @@ namespace ComputeSharp.BokehBlur.Processors
///
/// Performs a vertical 1D complex convolution with the specified parameters.
///
- /// The source to read data from.
+ /// The source to read data from.
/// The target to write the results to.
/// The with the values for the current complex kernel.
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private void ApplyVerticalConvolution(
- ReadWriteTexture2D source,
+ IReadWriteTexture2D source,
ReadWriteTexture2D target,
ReadOnlyBuffer kernel)
{
@@ -140,7 +140,7 @@ namespace ComputeSharp.BokehBlur.Processors
public readonly int maxX;
public readonly int kernelLength;
- public readonly ReadWriteTexture2D source;
+ public readonly IReadWriteTexture2D source;
public readonly ReadWriteTexture2D target;
public readonly ReadOnlyBuffer kernel;
@@ -168,12 +168,12 @@ namespace ComputeSharp.BokehBlur.Processors
/// Performs an horizontal 1D complex convolution with the specified parameters.
///
/// The source to read data from.
- /// The target to write the results to.
+ /// The target to write the results to.
/// The with the values for the current complex kernel.
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private void ApplyHorizontalConvolution(
ReadWriteTexture2D source,
- ReadWriteTexture2D target,
+ IReadWriteTexture2D target,
ReadOnlyBuffer kernel)
{
int height = Source.Height;
@@ -201,7 +201,7 @@ namespace ComputeSharp.BokehBlur.Processors
public readonly int kernelLength;
public readonly ReadWriteTexture2D source;
- public readonly ReadWriteTexture2D target;
+ public readonly IReadWriteTexture2D target;
public readonly ReadOnlyBuffer kernel;
///