| 
									
										
										
										
											2013-04-17 23:29:41 -04:00
										 |  |  | // Copyright 2013 Dolphin Emulator Project
 | 
					
						
							|  |  |  | // Licensed under GPLv2
 | 
					
						
							|  |  |  | // Refer to the license.txt file included.
 | 
					
						
							| 
									
										
										
										
											2010-06-09 01:37:08 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-17 05:18:15 -05:00
										 |  |  | #include "Common/CommonTypes.h"
 | 
					
						
							|  |  |  | #include "VideoBackends/Software/SWVideoConfig.h"
 | 
					
						
							| 
									
										
										
										
											2010-06-09 01:37:08 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-10 13:54:46 -05:00
										 |  |  | #pragma once
 | 
					
						
							| 
									
										
										
										
											2010-06-09 01:37:08 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-02-03 19:55:30 +00:00
										 |  |  | struct SWStatistics | 
					
						
							| 
									
										
										
										
											2010-06-09 01:37:08 +00:00
										 |  |  | { | 
					
						
							| 
									
										
										
										
											2013-04-13 23:54:02 -04:00
										 |  |  | 	struct ThisFrame | 
					
						
							|  |  |  | 	{ | 
					
						
							|  |  |  | 		u32 numDrawnObjects; | 
					
						
							|  |  |  | 		u32 numPrimatives; | 
					
						
							|  |  |  | 		u32 numVerticesLoaded; | 
					
						
							|  |  |  | 		u32 numVerticesOut; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		u32 numTrianglesIn; | 
					
						
							|  |  |  | 		u32 numTrianglesRejected; | 
					
						
							|  |  |  | 		u32 numTrianglesCulled; | 
					
						
							|  |  |  | 		u32 numTrianglesClipped; | 
					
						
							|  |  |  | 		u32 numTrianglesDrawn; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		u32 rasterizedPixels; | 
					
						
							|  |  |  | 		u32 tevPixelsIn; | 
					
						
							|  |  |  | 		u32 tevPixelsOut; | 
					
						
							|  |  |  | 	}; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	u32 frameCount; | 
					
						
							|  |  |  | 	SWStatistics(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	ThisFrame thisFrame; | 
					
						
							|  |  |  | 	void ResetFrame(); | 
					
						
							| 
									
										
										
										
											2010-06-09 01:37:08 +00:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-02-03 19:55:30 +00:00
										 |  |  | extern SWStatistics swstats; | 
					
						
							| 
									
										
										
										
											2010-06-09 01:37:08 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | #if (STATISTICS)
 | 
					
						
							|  |  |  | #define INCSTAT(a) (a)++;
 | 
					
						
							|  |  |  | #define ADDSTAT(a,b) (a)+=(b);
 | 
					
						
							|  |  |  | #define SETSTAT(a,x) (a)=(int)(x);
 | 
					
						
							|  |  |  | #else
 | 
					
						
							|  |  |  | #define INCSTAT(a) ;
 | 
					
						
							|  |  |  | #define ADDSTAT(a,b) ;
 | 
					
						
							|  |  |  | #define SETSTAT(a,x) ;
 | 
					
						
							|  |  |  | #endif
 |