mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-15 17:51:16 +01:00
aa1cd849cf
* Quads, QuadStrip and const attributes support * Add support for half float attributes and fix texture pitch alignment * Throw when an unsupported float type is used as const attribute aswell
35 lines
1.0 KiB
C#
35 lines
1.0 KiB
C#
using System;
|
|
|
|
namespace Ryujinx.Graphics.Gal
|
|
{
|
|
public struct GalVertexAttrib
|
|
{
|
|
public int Index { get; private set; }
|
|
public bool IsConst { get; private set; }
|
|
public int Offset { get; private set; }
|
|
public IntPtr Pointer { get; private set; }
|
|
|
|
public GalVertexAttribSize Size { get; private set; }
|
|
public GalVertexAttribType Type { get; private set; }
|
|
|
|
public bool IsBgra { get; private set; }
|
|
|
|
public GalVertexAttrib(
|
|
int Index,
|
|
bool IsConst,
|
|
int Offset,
|
|
IntPtr Pointer,
|
|
GalVertexAttribSize Size,
|
|
GalVertexAttribType Type,
|
|
bool IsBgra)
|
|
{
|
|
this.Index = Index;
|
|
this.IsConst = IsConst;
|
|
this.Pointer = Pointer;
|
|
this.Offset = Offset;
|
|
this.Size = Size;
|
|
this.Type = Type;
|
|
this.IsBgra = IsBgra;
|
|
}
|
|
}
|
|
} |