MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / NumIndicesForPrim

Function NumIndicesForPrim

pcsx2/GS/GSState.cpp:242–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

240}
241
242static constexpr u32 NumIndicesForPrim(u32 prim)
243{
244 switch (prim)
245 {
246 case GS_POINTLIST:
247 case GS_INVALID:
248 return 1;
249 case GS_LINELIST:
250 case GS_SPRITE:
251 case GS_LINESTRIP:
252 return 2;
253 case GS_TRIANGLELIST:
254 case GS_TRIANGLESTRIP:
255 case GS_TRIANGLEFAN:
256 return 3;
257 default:
258 return 0;
259 }
260}
261
262static constexpr u32 MaxVerticesForPrim(u32 prim)
263{

Callers 2

CheckCLUTValidityMethod · 0.85
VertexKickMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected