mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-12 21:47:47 +00:00
Add InputTopologyVertices from torzu adapted to eden
This commit is contained in:
parent
b03d51f06f
commit
44dc152a2b
3 changed files with 27 additions and 0 deletions
|
@ -30,6 +30,24 @@ enum class InputTopology {
|
|||
TrianglesAdjacency,
|
||||
};
|
||||
|
||||
struct InputTopologyVertices {
|
||||
static u32 vertices(InputTopology input_topology) {
|
||||
switch (input_topology) {
|
||||
case InputTopology::Lines:
|
||||
return 2;
|
||||
case InputTopology::LinesAdjacency:
|
||||
return 4;
|
||||
case InputTopology::Triangles:
|
||||
return 3;
|
||||
case InputTopology::TrianglesAdjacency:
|
||||
return 6;
|
||||
case InputTopology::Points:
|
||||
default:
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
enum class CompareFunction {
|
||||
Never,
|
||||
Less,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue