diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2019-12-31 13:32:06 -0300 |
|---|---|---|
| committer | Thog <thog@protonmail.com> | 2020-01-09 02:13:00 +0100 |
| commit | d1c0a64e6a60b5c6f288c5d152e4f35fb587d988 (patch) | |
| tree | 50a9f4fe9764715e3c2ff2b44e038533017324d1 /Ryujinx.Graphics.Gpu/State/VertexBufferState.cs | |
| parent | 430faeb8ef9a5906af642a4a2be0eb6e878f812e (diff) | |
Add XML documentation to Ryujinx.Graphics.Gpu.State
Diffstat (limited to 'Ryujinx.Graphics.Gpu/State/VertexBufferState.cs')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/State/VertexBufferState.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Gpu/State/VertexBufferState.cs b/Ryujinx.Graphics.Gpu/State/VertexBufferState.cs index a8bd2c92..e514f2a9 100644 --- a/Ryujinx.Graphics.Gpu/State/VertexBufferState.cs +++ b/Ryujinx.Graphics.Gpu/State/VertexBufferState.cs @@ -1,16 +1,27 @@ namespace Ryujinx.Graphics.Gpu.State { + /// <summary> + /// Vertex buffer state. + /// </summary> struct VertexBufferState { public uint Control; public GpuVa Address; public int Divisor; + /// <summary> + /// Vertex buffer stride, defined as the number of bytes occupied by each vertex in memory. + /// </summary> + /// <returns>Vertex buffer stride</returns> public int UnpackStride() { return (int)(Control & 0xfff); } + /// <summary> + /// Vertex buffer enable. + /// </summary> + /// <returns>True if the vertex buffer is enabled, false otherwise</returns> public bool UnpackEnable() { return (Control & (1 << 12)) != 0; |
