1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-11-18 09:36:40 +00:00
Ryujinx/Ryujinx.Graphics.GAL/Target.cs

34 lines
928 B
C#
Raw Normal View History

2019-12-29 17:41:50 +00:00
namespace Ryujinx.Graphics.GAL
2019-10-13 07:02:07 +01:00
{
public enum Target
{
Texture1D,
Texture2D,
Texture3D,
Texture1DArray,
Texture2DArray,
Texture2DMultisample,
Texture2DMultisampleArray,
Cubemap,
CubemapArray,
TextureBuffer
}
public static class TargetExtensions
{
public static bool IsMultisample(this Target target)
{
return target == Target.Texture2DMultisample || target == Target.Texture2DMultisampleArray;
}
public static bool HasDepthOrLayers(this Target target)
{
return target == Target.Texture3D ||
target == Target.Texture1DArray ||
target == Target.Texture2DArray ||
target == Target.Texture2DMultisampleArray ||
target == Target.Cubemap ||
target == Target.CubemapArray;
}
}
2019-10-13 07:02:07 +01:00
}