GPU: Move enums/types into separate file

This commit is contained in:
Connor McLaughlin
2020-10-22 19:31:28 +10:00
parent d3d881aa6b
commit 03d4f80883
19 changed files with 343 additions and 287 deletions

View File

@ -36,10 +36,10 @@ protected:
u8 r, g, b;
u8 u, v;
ALWAYS_INLINE void SetPosition(VertexPosition p, s32 offset_x, s32 offset_y)
ALWAYS_INLINE void SetPosition(GPUVertexPosition p, s32 offset_x, s32 offset_y)
{
x = TruncateVertexPosition(offset_x + p.x);
y = TruncateVertexPosition(offset_y + p.y);
x = TruncateGPUVertexPosition(offset_x + p.x);
y = TruncateGPUVertexPosition(offset_y + p.y);
}
ALWAYS_INLINE void SetColorRGB24(u32 color) { std::tie(r, g, b) = UnpackColorRGB24(color); }