Ryujinx/src/Ryujinx.Graphics.Shader/Translation/FeatureFlags.cs
gdkchan 6ed613a6e6
Fix vote and shuffle shader instructions on AMD GPUs (#5540)
* Move shuffle handling out of the backend to a transform pass

* Handle subgroup sizes higher than 32

* Stop using the subgroup size control extension

* Make GenerateShuffleFunction static

* Shader cache version bump
2023-08-16 21:31:07 -03:00

26 lines
655 B
C#

using System;
namespace Ryujinx.Graphics.Shader.Translation
{
/// <summary>
/// Features used by the shader that are important for the code generator to know in advance.
/// These typically change the declarations in the shader header.
/// </summary>
[Flags]
public enum FeatureFlags
{
None = 0,
// Affected by resolution scaling.
FragCoordXY = 1 << 1,
Bindless = 1 << 2,
InstanceId = 1 << 3,
DrawParameters = 1 << 4,
RtLayer = 1 << 5,
Shuffle = 1 << 6,
FixedFuncAttr = 1 << 9,
LocalMemory = 1 << 10,
SharedMemory = 1 << 11,
}
}