1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2025-12-13 01:58:30 +00:00

Added custom stride parameter to PixelTexture

This commit is contained in:
Darth Affe 2021-03-01 22:49:31 +01:00
parent 0780f37852
commit 9c8d67740d

View File

@ -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;