eb0bb36bbf
* Implement transform feedback emulation for hardware without native support * Stop doing some useless buffer updates and account for non-zero base instance * Reduce redundant updates even more * Update descriptor init logic to account for ResourceLayout * Fix transform feedback and storage buffers not being updated in some cases * Shader cache version bump * PR feedback * SetInstancedDrawVertexCount must be always called after UpdateState * Minor typo
20 lines
No EOL
641 B
C#
20 lines
No EOL
641 B
C#
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));
|
|
|
|
public const int NvnBaseVertexByteOffset = 0x640;
|
|
public const int NvnBaseInstanceByteOffset = 0x644;
|
|
public const int NvnDrawIndexByteOffset = 0x648;
|
|
|
|
// Transform Feedback emulation.
|
|
|
|
public const int TfeInfoBinding = 0;
|
|
public const int TfeBufferBaseBinding = 1;
|
|
public const int TfeBuffersCount = 4;
|
|
}
|
|
} |