mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 00:20:01 +00:00
Create cb_set_coords
This commit is contained in:
parent
97095404bd
commit
6b6d1ee986
@ -2473,6 +2473,24 @@ static void video_shader_driver_use_null(void *data,
|
||||
(void)set_active;
|
||||
}
|
||||
|
||||
static bool video_driver_cb_set_coords(void *handle_data,
|
||||
void *shader_data, const struct video_coords *coords)
|
||||
{
|
||||
current_shader->set_coords(handle_data, shader_data,
|
||||
coords);
|
||||
return true;
|
||||
}
|
||||
|
||||
#if 0
|
||||
static bool video_driver_cb_set_coords_fallback(void *handle_data,
|
||||
void *shader_data, const struct video_coords *coords)
|
||||
{
|
||||
current_shader->set_coords_fallback(handle_data, shader_data,
|
||||
coords);
|
||||
return true;
|
||||
}
|
||||
#endif
|
||||
|
||||
void video_driver_build_info(video_frame_info_t *video_info)
|
||||
{
|
||||
bool is_perfcnt_enable = false;
|
||||
@ -2581,6 +2599,8 @@ void video_driver_build_info(video_frame_info_t *video_info)
|
||||
video_info->cb_shader_use = video_driver_cb_shader_use;
|
||||
video_info->cb_shader_set_mvp = video_driver_cb_shader_set_mvp;
|
||||
|
||||
video_info->cb_set_coords = video_driver_cb_set_coords;
|
||||
|
||||
#ifdef HAVE_THREADS
|
||||
video_driver_threaded_unlock(is_threaded);
|
||||
#endif
|
||||
|
@ -468,6 +468,8 @@ typedef struct video_frame_info
|
||||
bool (*cb_set_resize)(void*, unsigned, unsigned);
|
||||
|
||||
void (*cb_shader_use)(void *data, void *shader_data, unsigned index, bool set_active);
|
||||
bool (*cb_set_coords)(void *handle_data,
|
||||
void *shader_data, const struct video_coords *coords);
|
||||
bool (*cb_shader_set_mvp)(void *data, void *shader_data,
|
||||
const math_matrix_4x4 *mat);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user