VideoCommon: Add class for quickly transforming and culling vertices on the CPU

This commit is contained in:
TellowKrinkle
2022-11-10 19:30:49 -06:00
parent f6fbeaf355
commit b170ef9651
9 changed files with 1017 additions and 84 deletions

View File

@ -17,7 +17,7 @@ enum class SrcBlendFactor : u32;
enum class ZTexOp : u32;
enum class LogicOp : u32;
struct PixelShaderConstants
struct alignas(16) PixelShaderConstants
{
std::array<int4, 4> colors;
std::array<int4, 4> kcolors;
@ -60,7 +60,7 @@ struct PixelShaderConstants
LogicOp logic_op_mode;
};
struct VertexShaderConstants
struct alignas(16) VertexShaderConstants
{
u32 components; // .x
u32 xfmem_dualTexInfo; // .y
@ -109,7 +109,7 @@ enum class VSExpand : u32
Line,
};
struct GeometryShaderConstants
struct alignas(16) GeometryShaderConstants
{
float4 stereoparams;
float4 lineptparams;