forked from MoonsideGames/MoonWorks
add more info to Texture
parent
1fe256a479
commit
0c588b96f4
|
@ -1,6 +1,4 @@
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
|
||||||
using System.Runtime.InteropServices;
|
|
||||||
using RefreshCS;
|
using RefreshCS;
|
||||||
|
|
||||||
namespace MoonWorks.Graphics
|
namespace MoonWorks.Graphics
|
||||||
|
@ -12,7 +10,12 @@ namespace MoonWorks.Graphics
|
||||||
{
|
{
|
||||||
public uint Width { get; }
|
public uint Width { get; }
|
||||||
public uint Height { get; }
|
public uint Height { get; }
|
||||||
|
public uint Depth { get; }
|
||||||
public TextureFormat Format { get; }
|
public TextureFormat Format { get; }
|
||||||
|
public bool IsCube { get; }
|
||||||
|
public uint LevelCount { get; }
|
||||||
|
public SampleCount SampleCount { get; }
|
||||||
|
public TextureUsageFlags UsageFlags { get; }
|
||||||
|
|
||||||
protected override Action<IntPtr, IntPtr> QueueDestroyFunction => Refresh.Refresh_QueueDestroyTexture;
|
protected override Action<IntPtr, IntPtr> QueueDestroyFunction => Refresh.Refresh_QueueDestroyTexture;
|
||||||
|
|
||||||
|
@ -181,8 +184,12 @@ namespace MoonWorks.Graphics
|
||||||
Format = textureCreateInfo.Format;
|
Format = textureCreateInfo.Format;
|
||||||
Width = textureCreateInfo.Width;
|
Width = textureCreateInfo.Width;
|
||||||
Height = textureCreateInfo.Height;
|
Height = textureCreateInfo.Height;
|
||||||
}
|
Depth = textureCreateInfo.Depth;
|
||||||
|
IsCube = textureCreateInfo.IsCube;
|
||||||
|
SampleCount = textureCreateInfo.SampleCount;
|
||||||
|
LevelCount = textureCreateInfo.LevelCount;
|
||||||
|
SampleCount = textureCreateInfo.SampleCount;
|
||||||
|
UsageFlags = textureCreateInfo.UsageFlags;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue