Added custom stride parameter to PixelTexture

This commit is contained in:
DarthAffe committed 2021-03-01 22:49:31 +01:00
1 parent 0780f37852
commit 9c8d67740d
1 file changed
+2 -2
@@ -81,9 +81,9 @@ namespace RGB.NET.Core
#region Constructors
public PixelTexture(int with, int height, int dataPerPixel, ISampler<T> sampler)
public PixelTexture(int with, int height, int dataPerPixel, ISampler<T> sampler, int stride = -1)
{
this._stride = with;
this._stride = stride == -1 ? with : stride;
this._dataPerPixel = dataPerPixel;
this.Sampler = sampler;