mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 13:18:50 +00:00
Renderer: Move cull mode to a rasterization state object
Also moves logic for primitive handling to VideoCommon.
This commit is contained in:
parent
2869c570f1
commit
836b9b9acb
38 changed files with 389 additions and 450 deletions
|
@ -9,6 +9,24 @@
|
|||
#include "VideoCommon/BPMemory.h"
|
||||
#include "VideoCommon/BPStructs.h"
|
||||
|
||||
enum class PrimitiveType : u32
|
||||
{
|
||||
Points,
|
||||
Lines,
|
||||
Triangles,
|
||||
TriangleStrip,
|
||||
};
|
||||
|
||||
union RasterizationState
|
||||
{
|
||||
void Generate(const BPMemory& bp, PrimitiveType primitive_type);
|
||||
|
||||
BitField<0, 2, GenMode::CullMode> cullmode;
|
||||
BitField<3, 2, PrimitiveType> primitive;
|
||||
|
||||
u32 hex;
|
||||
};
|
||||
|
||||
union DepthState
|
||||
{
|
||||
void Generate(const BPMemory& bp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue