plug ShaderInterface into GPUShader
Renamed existing getter/setter that only FX shaders use. We could convert FX code to use the richer new interface or leave it as is. Removed unused GPUShader fields. ShaderInterface tracks the same information.
This commit is contained in:
@@ -71,8 +71,12 @@ void GPU_shader_bind(GPUShader *shader);
|
||||
void GPU_shader_unbind(void);
|
||||
|
||||
int GPU_shader_get_program(GPUShader *shader);
|
||||
|
||||
void *GPU_shader_get_interface(GPUShader *shader);
|
||||
void GPU_shader_set_interface(GPUShader *shader, void *interface);
|
||||
|
||||
void *GPU_fx_shader_get_interface(GPUShader *shader);
|
||||
void GPU_fx_shader_set_interface(GPUShader *shader, void *interface);
|
||||
|
||||
int GPU_shader_get_uniform(GPUShader *shader, const char *name);
|
||||
int GPU_shader_get_uniform_block(GPUShader *shader, const char *name);
|
||||
void GPU_shader_uniform_vector(GPUShader *shader, int location, int length,
|
||||
|
||||
Reference in New Issue
Block a user