mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
just a bunch of random code cleanup i did on the train bored, plus a d3d implementation of NativeVertexFormat which isn't actually used yet.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1658 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -89,14 +89,16 @@ struct PortableVertexDeclaration
|
||||
// all the data loading code must always be made compatible.
|
||||
class NativeVertexFormat
|
||||
{
|
||||
u8* m_compiledCode;
|
||||
PortableVertexDeclaration vtx_decl;
|
||||
public:
|
||||
NativeVertexFormat();
|
||||
~NativeVertexFormat();
|
||||
protected:
|
||||
NativeVertexFormat() {}
|
||||
|
||||
void Initialize(const PortableVertexDeclaration &vtx_decl);
|
||||
void SetupVertexPointers() const;
|
||||
public:
|
||||
virtual ~NativeVertexFormat() {}
|
||||
|
||||
virtual void Initialize(const PortableVertexDeclaration &vtx_decl) = 0;
|
||||
virtual void SetupVertexPointers() const = 0;
|
||||
|
||||
static NativeVertexFormat *Create();
|
||||
|
||||
// TODO: move these in under private:
|
||||
u32 m_components; // VB_HAS_X. Bitmask telling what vertex components are present.
|
||||
|
@ -20,8 +20,16 @@
|
||||
|
||||
#include "Common.h"
|
||||
|
||||
// This must be called once before calling the two conversion functions
|
||||
// below.
|
||||
void InitXFBConvTables();
|
||||
|
||||
// These implementations could likely be made considerably faster by
|
||||
// reducing precision so that intermediate calculations are done in
|
||||
// 15-bit precision instead of 32-bit. However, this would complicate
|
||||
// the code and since we have a GPU implementation too, there really
|
||||
// isn't much point.
|
||||
|
||||
// Converts 4:2:2 YUV (YUYV) data to 32-bit RGBA data.
|
||||
void ConvertFromXFB(u32 *dst, const u8* _pXFB, int width, int height);
|
||||
|
||||
|
Reference in New Issue
Block a user