Renamed GetData/SetData to CopyTo/CopyFrom

このコミットが含まれているのは:
Sergio Pedri committed 2021-01-31 23:46:00 +01:00
1 親 da19f87276
コミット f8d0ac5b87
23ファイル変更
+183 -183

検索条件に一致するファイルはありません

+2 -2
ファイルの表示
@@ -270,7 +270,7 @@ namespace ComputeSharp.BokehBlur.Processors
{
Vector4 parameters = KernelParameters[j];
kernel.SetData(Kernels[j]);
kernel.CopyFrom(Kernels[j]);
Gpu.Default.For<VerticalConvolutionProcessor>(
source.Width,
@@ -287,7 +287,7 @@ namespace ComputeSharp.BokehBlur.Processors
Gpu.Default.For<InverseGammaHighlightProcessor>(source.Height, new(temporary, texture));
// Write the final pixel data
texture.GetData(span);
texture.CopyTo(span);
}
/// <summary>
+1 -1
ファイルの表示
@@ -101,7 +101,7 @@ namespace ComputeSharp.BokehBlur.Processors
Gpu.Default.For<VerticalConvolutionProcessor>(source.Width, source.Height, new(sourceTexture, firstPassTexture, kernelBuffer));
Gpu.Default.For<HorizontalConvolutionProcessor>(source.Width, source.Height, new(firstPassTexture, sourceTexture, kernelBuffer));
sourceTexture.GetData(span);
sourceTexture.CopyTo(span);
}
/// <summary>