Added size properties to texture interfaces

このコミットが含まれているのは:
Sergio Pedri committed 2021-01-06 18:14:37 +01:00
1 親 2c90b7a92c
コミット da339566cc
4ファイル変更
+50

検索条件に一致するファイルはありません

+10
ファイルの表示
@@ -8,6 +8,16 @@
public interface IReadOnlyTexture2D<TPixel>
where TPixel : unmanaged
{
/// <summary>
/// Gets the width of the current texture.
/// </summary>
public int Width { get; }
/// <summary>
/// Gets the height of the current texture.
/// </summary>
public int Height { get; }
/// <summary>
/// Gets a single <typeparamref name="TPixel"/> value from the current readonly texture.
/// </summary>
+15
ファイルの表示
@@ -8,6 +8,21 @@
public interface IReadOnlyTexture3D<TPixel>
where TPixel : unmanaged
{
/// <summary>
/// Gets the width of the current texture.
/// </summary>
public int Width { get; }
/// <summary>
/// Gets the height of the current texture.
/// </summary>
public int Height { get; }
/// <summary>
/// Gets the depth of the current texture.
/// </summary>
public int Depth { get; }
/// <summary>
/// Gets a single <typeparamref name="TPixel"/> value from the current readonly texture.
/// </summary>
+10
ファイルの表示
@@ -8,6 +8,16 @@
public interface IReadWriteTexture2D<TPixel>
where TPixel : unmanaged
{
/// <summary>
/// Gets the width of the current texture.
/// </summary>
public int Width { get; }
/// <summary>
/// Gets the height of the current texture.
/// </summary>
public int Height { get; }
/// <summary>
/// Gets a single <typeparamref name="TPixel"/> value from the current writeable texture.
/// </summary>
+15
ファイルの表示
@@ -8,6 +8,21 @@
public interface IReadWriteTexture3D<TPixel>
where TPixel : unmanaged
{
/// <summary>
/// Gets the width of the current texture.
/// </summary>
public int Width { get; }
/// <summary>
/// Gets the height of the current texture.
/// </summary>
public int Height { get; }
/// <summary>
/// Gets the depth of the current texture.
/// </summary>
public int Depth { get; }
/// <summary>
/// Gets a single <typeparamref name="TPixel"/> value from the current writeable texture.
/// </summary>