mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-26 01:30:51 +00:00
Change callback prototype
This commit is contained in:
parent
1230edf1ee
commit
0b7ee2fcf7
@ -112,13 +112,12 @@ struct uniform_cg_data
|
||||
|
||||
static void gl_cg_set_uniform_parameter(
|
||||
void *data,
|
||||
void *uniform_info_data,
|
||||
struct uniform_info *param,
|
||||
void *_shader_info_data,
|
||||
void *uniform_data)
|
||||
{
|
||||
CGparameter location;
|
||||
cg_shader_data_t *cg_data = (cg_shader_data_t*)data;
|
||||
struct uniform_info *param = (struct uniform_info*)uniform_info_data;
|
||||
struct shader_program_cg_data *shader_data = (struct shader_program_cg_data*)_shader_info_data;
|
||||
|
||||
if (!param || !param->enabled)
|
||||
|
@ -1051,13 +1051,12 @@ error:
|
||||
|
||||
static void gl_glsl_set_uniform_parameter(
|
||||
void *data,
|
||||
void *uniform_info_data,
|
||||
struct uniform_info *param,
|
||||
void *shader_info_data,
|
||||
void *uniform_data)
|
||||
{
|
||||
GLint location = 0;
|
||||
glsl_shader_data_t *glsl = (glsl_shader_data_t*)data;
|
||||
struct uniform_info *param = (struct uniform_info*)uniform_info_data;
|
||||
struct shader_program_glsl_data *shader_data = (struct shader_program_glsl_data*)shader_info_data;
|
||||
|
||||
if (!param)
|
||||
|
@ -105,12 +105,11 @@ void hlsl_set_proj_matrix(void *data, XMMATRIX rotation_value)
|
||||
|
||||
static void hlsl_uniform_set_parameter(
|
||||
void *data,
|
||||
void *uniform_info_data,
|
||||
struct uniform_info *param,
|
||||
void *_shader_info_data,
|
||||
void *uniform_data)
|
||||
{
|
||||
hlsl_shader_data_t *hlsl = (hlsl_shader_data_t*)data;
|
||||
struct uniform_info *param = (struct uniform_info*)uniform_info_data;
|
||||
struct shader_program_hlsl_data *shader_data = (struct shader_program_hlsl_data*)_shader_info_data;
|
||||
|
||||
(void)hlsl;
|
||||
|
@ -76,7 +76,7 @@ static void shader_null_set_params(void *data, void *shader_data,
|
||||
|
||||
static void shader_null_set_uniform_parameter(
|
||||
void *data,
|
||||
void *uniform_info_data,
|
||||
struct uniform_info *param,
|
||||
void *shader_info_data,
|
||||
void *uniform_data)
|
||||
{
|
||||
|
@ -163,7 +163,7 @@ typedef struct shader_backend
|
||||
const void *prev_info,
|
||||
const void *feedback_info,
|
||||
const void *fbo_info, unsigned fbo_info_cnt);
|
||||
void (*set_uniform_parameter)(void *data, void *uniform_info_data,
|
||||
void (*set_uniform_parameter)(void *data, struct uniform_info *param,
|
||||
void *shader_info_data, void *uniform_data);
|
||||
bool (*compile_program)(void *data, unsigned idx,
|
||||
void *program_data, struct shader_program_info *program_info);
|
||||
|
Loading…
Reference in New Issue
Block a user