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

Merge pull request #318 from DarthAffe/RenderPerformance

Changed stride and DataPerPixel in the PixelTexture to be a property …
This commit is contained in:
DarthAffe 2023-04-23 18:05:56 +02:00 committed by GitHub
commit 4a0ae1a185
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,12 +23,12 @@ public abstract class PixelTexture<T> : ITexture
/// <summary>
/// Gets the amount of data-entries per pixel.
/// </summary>
protected readonly int DataPerPixel;
protected int DataPerPixel { get; }
/// <summary>
/// Gets the stride of the data.
/// </summary>
protected readonly int Stride;
protected int Stride { get; }
/// <summary>
/// Gets or sets the sampler used to get the color of a region.