mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-16 01:55:27 +00:00
23 lines
424 B
C#
23 lines
424 B
C#
|
namespace Ryujinx.Graphics.Gpu.State
|
||
|
{
|
||
|
struct VertexAttribState
|
||
|
{
|
||
|
public uint Attribute;
|
||
|
|
||
|
public int UnpackBufferIndex()
|
||
|
{
|
||
|
return (int)(Attribute & 0x1f);
|
||
|
}
|
||
|
|
||
|
public int UnpackOffset()
|
||
|
{
|
||
|
return (int)((Attribute >> 7) & 0x3fff);
|
||
|
}
|
||
|
|
||
|
public uint UnpackFormat()
|
||
|
{
|
||
|
return Attribute & 0x3fe00000;
|
||
|
}
|
||
|
}
|
||
|
}
|