2021-08-27 00:44:47 +01:00
|
|
|
namespace Ryujinx.Graphics.Shader
|
|
|
|
{
|
|
|
|
static class Constants
|
|
|
|
{
|
|
|
|
public const int ConstantBufferSize = 0x10000; // In bytes
|
|
|
|
|
|
|
|
public const int MaxAttributes = 16;
|
|
|
|
public const int AllAttributesMask = (int)(uint.MaxValue >> (32 - MaxAttributes));
|
2022-11-16 17:53:04 +00:00
|
|
|
|
|
|
|
public const int NvnBaseVertexByteOffset = 0x640;
|
|
|
|
public const int NvnBaseInstanceByteOffset = 0x644;
|
|
|
|
public const int NvnDrawIndexByteOffset = 0x648;
|
2023-06-10 22:31:38 +01:00
|
|
|
|
|
|
|
// Transform Feedback emulation.
|
|
|
|
|
|
|
|
public const int TfeInfoBinding = 0;
|
|
|
|
public const int TfeBufferBaseBinding = 1;
|
|
|
|
public const int TfeBuffersCount = 4;
|
2021-08-27 00:44:47 +01:00
|
|
|
}
|
|
|
|
}
|