(D3D) Move struct Pass to render_chain.cpp

This commit is contained in:
twinaphex 2015-04-05 18:40:19 +02:00
parent daf3f3bb08
commit e34c90179f
2 changed files with 15 additions and 15 deletions

View File

@ -25,6 +25,21 @@ struct lut_info
bool smooth;
};
struct Pass
{
LinkInfo info;
LPDIRECT3DTEXTURE tex;
LPDIRECT3DVERTEXBUFFER vertex_buf;
#ifdef HAVE_CG
CGprogram vPrg, fPrg;
#endif
unsigned last_width, last_height;
#ifdef HAVE_D3D9
LPDIRECT3DVERTEXDECLARATION vertex_decl;
#endif
std::vector<unsigned> attrib_map;
};
typedef struct renderchain
{
LPDIRECT3DDEVICE dev;

View File

@ -45,21 +45,6 @@ enum
TEXTURESMASK = TEXTURES - 1
};
struct Pass
{
LinkInfo info;
LPDIRECT3DTEXTURE tex;
LPDIRECT3DVERTEXBUFFER vertex_buf;
#ifdef HAVE_CG
CGprogram vPrg, fPrg;
#endif
unsigned last_width, last_height;
#ifdef HAVE_D3D9
LPDIRECT3DVERTEXDECLARATION vertex_decl;
#endif
std::vector<unsigned> attrib_map;
};
void renderchain_free(void *data);
void *renderchain_new(void);