mirror of
https://github.com/libretro/RetroArch.git
synced 2025-03-03 23:49:03 +00:00
(D3D) More refactors
This commit is contained in:
parent
122df894ff
commit
4ba073424c
@ -60,9 +60,9 @@ void renderchain_free(void *data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool renderchain_init(void *data, const video_info_t *video_info,
|
bool renderchain_init(void *data, const video_info_t *video_info,
|
||||||
LPDIRECT3DDEVICE dev_,
|
void *dev_,
|
||||||
void *shader_context,
|
void *shader_context,
|
||||||
const D3DVIEWPORT *final_viewport_,
|
const void *final_viewport_,
|
||||||
const void *info_data, PixelFormat fmt)
|
const void *info_data, PixelFormat fmt)
|
||||||
{
|
{
|
||||||
const LinkInfo *info = (const LinkInfo*)info_data;
|
const LinkInfo *info = (const LinkInfo*)info_data;
|
||||||
@ -72,7 +72,7 @@ bool renderchain_init(void *data, const video_info_t *video_info,
|
|||||||
if (!chain)
|
if (!chain)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
chain->dev = dev_;
|
chain->dev = (LPDIRECT3DDEVICE)dev_;
|
||||||
#ifdef HAVE_CG
|
#ifdef HAVE_CG
|
||||||
chain->cgCtx = cgCtx_;
|
chain->cgCtx = cgCtx_;
|
||||||
#endif
|
#endif
|
||||||
@ -128,10 +128,10 @@ void renderchain_clear(void *data)
|
|||||||
chain->luts.clear();
|
chain->luts.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void renderchain_set_final_viewport(void *data,
|
void renderchain_set_final_viewport(void *data, const void *viewport_data)
|
||||||
const D3DVIEWPORT *final_viewport)
|
|
||||||
{
|
{
|
||||||
renderchain_t *chain = (renderchain_t*)data;
|
renderchain_t *chain = (renderchain_t*)data;
|
||||||
|
const D3DVIEWPORT *final_viewport = (const D3DVIEWPORT*)viewport_data;
|
||||||
|
|
||||||
if (chain)
|
if (chain)
|
||||||
chain->final_viewport = (D3DVIEWPORT*)final_viewport;
|
chain->final_viewport = (D3DVIEWPORT*)final_viewport;
|
||||||
@ -523,9 +523,10 @@ void renderchain_set_vertices(
|
|||||||
vp_width, vp_height);
|
vp_width, vp_height);
|
||||||
}
|
}
|
||||||
|
|
||||||
void renderchain_set_viewport(void *data, D3DVIEWPORT *vp)
|
void renderchain_set_viewport(void *data, void *viewport_data)
|
||||||
{
|
{
|
||||||
LPDIRECT3DDEVICE d3dr;
|
LPDIRECT3DDEVICE d3dr;
|
||||||
|
D3DVIEWPORT *vp = (D3DVIEWPORT*)viewport_data;
|
||||||
renderchain_t *chain = (renderchain_t*)data;
|
renderchain_t *chain = (renderchain_t*)data;
|
||||||
|
|
||||||
if (!chain)
|
if (!chain)
|
||||||
|
@ -105,16 +105,15 @@ typedef struct renderchain
|
|||||||
void renderchain_free(void *data);
|
void renderchain_free(void *data);
|
||||||
|
|
||||||
bool renderchain_init(void *data, const video_info_t *video_info,
|
bool renderchain_init(void *data, const video_info_t *video_info,
|
||||||
LPDIRECT3DDEVICE dev_,
|
void *dev_,
|
||||||
void *shader_data,
|
void *shader_data,
|
||||||
const D3DVIEWPORT *final_viewport_,
|
const void *final_viewport_,
|
||||||
const void *info_data,
|
const void *info_data,
|
||||||
PixelFormat fmt);
|
PixelFormat fmt);
|
||||||
|
|
||||||
void renderchain_clear(void *data);
|
void renderchain_clear(void *data);
|
||||||
|
|
||||||
void renderchain_set_final_viewport(void *data,
|
void renderchain_set_final_viewport(void *data, const void *viewport_data);
|
||||||
const D3DVIEWPORT *final_viewport);
|
|
||||||
|
|
||||||
bool renderchain_set_pass_size(void *data, unsigned pass_index,
|
bool renderchain_set_pass_size(void *data, unsigned pass_index,
|
||||||
unsigned width, unsigned height);
|
unsigned width, unsigned height);
|
||||||
@ -148,7 +147,7 @@ void renderchain_set_vertices(
|
|||||||
unsigned vp_width, unsigned vp_height,
|
unsigned vp_width, unsigned vp_height,
|
||||||
unsigned rotation);
|
unsigned rotation);
|
||||||
|
|
||||||
void renderchain_set_viewport(void *data, D3DVIEWPORT *vp);
|
void renderchain_set_viewport(void *data, void *viewport_data);
|
||||||
|
|
||||||
void renderchain_set_mvp(void *data, void *vertex_program,
|
void renderchain_set_mvp(void *data, void *vertex_program,
|
||||||
unsigned vp_width, unsigned vp_height,
|
unsigned vp_width, unsigned vp_height,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user