mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
VideoCommon: Added automatic selection routines for SSSE3/SSE4.1 codes. It selects SSSE3/SSE4.1 codes only if a proper preprocessor definition is defined and the target cpu supports SSSE3/SSE4.1. The selection routines in VertexLoader_* use function pointers. TextureDecoder uses a combination of "#if" and "if" statements.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5302 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -18,17 +18,17 @@
|
||||
#ifndef VERTEXLOADER_POSITION_H
|
||||
#define VERTEXLOADER_POSITION_H
|
||||
|
||||
typedef void (LOADERDECL *ReadPosision)();
|
||||
class VertexLoader_Position {
|
||||
public:
|
||||
|
||||
// Hold function pointers of vertex loaders.
|
||||
// The first dimension corresponds to TVtxDesc.Position.
|
||||
// The second dimension corresponds to TVtxAttr.PosFormat.
|
||||
// The third dimension corresponds to TVtxAttr.PosElements.
|
||||
// The dimensions are aligned to 2^n for speed up.
|
||||
extern ReadPosision tableReadPosition[4][8][2];
|
||||
// Init
|
||||
static void Init(void);
|
||||
|
||||
// Hold vertex size of each vertex format.
|
||||
// The dimensions are same as tableReadPosition.
|
||||
extern int tableReadPositionVertexSize[4][8][2];
|
||||
// GetSize
|
||||
static unsigned int GetSize(unsigned int _type, unsigned int _format, unsigned int _elements);
|
||||
|
||||
// GetFunction
|
||||
static TPipelineFunction GetFunction(unsigned int _type, unsigned int _format, unsigned int _elements);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user