2019-12-29 18:41:50 +01:00
|
|
|
namespace Ryujinx.Graphics.GAL
|
2019-10-13 08:02:07 +02:00
|
|
|
{
|
|
|
|
public enum Target
|
|
|
|
{
|
|
|
|
Texture1D,
|
|
|
|
Texture2D,
|
|
|
|
Texture3D,
|
|
|
|
Texture1DArray,
|
|
|
|
Texture2DArray,
|
|
|
|
Texture2DMultisample,
|
|
|
|
Texture2DMultisampleArray,
|
|
|
|
Cubemap,
|
|
|
|
CubemapArray,
|
2023-06-28 20:20:10 +02:00
|
|
|
TextureBuffer,
|
2019-10-13 08:02:07 +02:00
|
|
|
}
|
2022-06-05 19:06:47 +02:00
|
|
|
|
|
|
|
public static class TargetExtensions
|
|
|
|
{
|
|
|
|
public static bool IsMultisample(this Target target)
|
|
|
|
{
|
|
|
|
return target == Target.Texture2DMultisample || target == Target.Texture2DMultisampleArray;
|
|
|
|
}
|
2023-03-14 21:08:44 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
2022-06-05 19:06:47 +02:00
|
|
|
}
|
2023-06-28 20:20:10 +02:00
|
|
|
}
|