2021-01-20 03:33:27 +00:00
|
|
|
|
using RefreshCS;
|
|
|
|
|
|
|
|
|
|
namespace MoonWorks.Graphics
|
|
|
|
|
{
|
2022-02-23 05:14:32 +00:00
|
|
|
|
public struct TextureCreateInfo
|
|
|
|
|
{
|
|
|
|
|
public uint Width;
|
|
|
|
|
public uint Height;
|
|
|
|
|
public uint Depth;
|
|
|
|
|
public bool IsCube;
|
|
|
|
|
public SampleCount SampleCount;
|
|
|
|
|
public uint LevelCount;
|
|
|
|
|
public TextureFormat Format;
|
|
|
|
|
public TextureUsageFlags UsageFlags;
|
2021-01-20 03:33:27 +00:00
|
|
|
|
|
2022-02-23 05:14:32 +00:00
|
|
|
|
public Refresh.TextureCreateInfo ToRefreshTextureCreateInfo()
|
|
|
|
|
{
|
|
|
|
|
return new Refresh.TextureCreateInfo
|
|
|
|
|
{
|
|
|
|
|
width = Width,
|
|
|
|
|
height = Height,
|
|
|
|
|
depth = Depth,
|
|
|
|
|
isCube = Conversions.BoolToByte(IsCube),
|
|
|
|
|
sampleCount = (Refresh.SampleCount) SampleCount,
|
|
|
|
|
levelCount = LevelCount,
|
|
|
|
|
format = (Refresh.TextureFormat) Format,
|
|
|
|
|
usageFlags = (Refresh.TextureUsageFlags) UsageFlags
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-01-20 03:33:27 +00:00
|
|
|
|
}
|