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:
parent
0780f37852
commit
9c8d67740d
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user