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:
commit
4a0ae1a185
@ -14,7 +14,7 @@ public abstract class PixelTexture<T> : ITexture
|
|||||||
where T : unmanaged
|
where T : unmanaged
|
||||||
{
|
{
|
||||||
#region Properties & Fields
|
#region Properties & Fields
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the underlying pixel data.
|
/// Gets the underlying pixel data.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -23,12 +23,12 @@ public abstract class PixelTexture<T> : ITexture
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the amount of data-entries per pixel.
|
/// Gets the amount of data-entries per pixel.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected readonly int DataPerPixel;
|
protected int DataPerPixel { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the stride of the data.
|
/// Gets the stride of the data.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected readonly int Stride;
|
protected int Stride { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the sampler used to get the color of a region.
|
/// Gets or sets the sampler used to get the color of a region.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user