mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Create d3d9_init_renderchain
This commit is contained in:
parent
ea5e4e9ae4
commit
ad3cedfff1
@ -107,7 +107,7 @@ static INLINE CGparameter d3d9_cg_find_param_from_semantic(
|
||||
return ret;
|
||||
}
|
||||
|
||||
if ( cgGetParameterDirection(param) != CG_IN
|
||||
if ( cgGetParameterDirection(param) != CG_IN
|
||||
|| cgGetParameterVariability(param) != CG_VARYING)
|
||||
continue;
|
||||
|
||||
@ -147,8 +147,10 @@ static bool d3d9_cg_load_program(void *data,
|
||||
goto error;
|
||||
}
|
||||
|
||||
RARCH_LOG("[D3D9 Cg]: Vertex profile: %s\n", cgGetProfileString(vertex_profile));
|
||||
RARCH_LOG("[D3D9 Cg]: Fragment profile: %s\n", cgGetProfileString(fragment_profile));
|
||||
RARCH_LOG("[D3D9 Cg]: Vertex profile: %s\n",
|
||||
cgGetProfileString(vertex_profile));
|
||||
RARCH_LOG("[D3D9 Cg]: Fragment profile: %s\n",
|
||||
cgGetProfileString(fragment_profile));
|
||||
|
||||
if (path_is_file && !string_is_empty(prog))
|
||||
*fprg = cgCreateProgramFromFile(cgCtx, CG_SOURCE,
|
||||
@ -695,10 +697,7 @@ static void *d3d9_cg_renderchain_new(void)
|
||||
if (!renderchain)
|
||||
return NULL;
|
||||
|
||||
renderchain->chain.passes = shader_pass_vector_list_new();
|
||||
renderchain->chain.luts = lut_info_vector_list_new();
|
||||
renderchain->chain.bound_tex = unsigned_vector_list_new();
|
||||
renderchain->chain.bound_vert = unsigned_vector_list_new();
|
||||
d3d9_init_renderchain(&renderchain->chain);
|
||||
|
||||
return renderchain;
|
||||
}
|
||||
|
@ -799,10 +799,7 @@ void *hlsl_d3d9_renderchain_new(void)
|
||||
if (!renderchain)
|
||||
return NULL;
|
||||
|
||||
renderchain->chain.passes = shader_pass_vector_list_new();
|
||||
renderchain->chain.luts = lut_info_vector_list_new();
|
||||
renderchain->chain.bound_tex = unsigned_vector_list_new();
|
||||
renderchain->chain.bound_vert = unsigned_vector_list_new();
|
||||
d3d9_init_renderchain(&renderchain->chain);
|
||||
|
||||
return renderchain;
|
||||
}
|
||||
|
@ -95,6 +95,14 @@ typedef struct d3d9_renderchain
|
||||
struct lut_info_vector_list *luts;
|
||||
} d3d9_renderchain_t;
|
||||
|
||||
static INLINE void d3d9_init_renderchain(d3d9_renderchain_t *chain)
|
||||
{
|
||||
chain->passes = shader_pass_vector_list_new();
|
||||
chain->luts = lut_info_vector_list_new();
|
||||
chain->bound_tex = unsigned_vector_list_new();
|
||||
chain->bound_vert = unsigned_vector_list_new();
|
||||
}
|
||||
|
||||
static INLINE void d3d9_renderchain_blit_to_texture(
|
||||
LPDIRECT3DTEXTURE9 tex,
|
||||
const void *frame,
|
||||
|
Loading…
x
Reference in New Issue
Block a user