9#ifndef C_API_ADDONINSTANCE_SHADER_PRESET_H
10#define C_API_ADDONINSTANCE_SHADER_PRESET_H
12#include "../addon_base.h"
26 typedef void* preset_file;
38 typedef enum SHADER_SCALE_TYPE
46 SHADER_SCALE_TYPE_INPUT,
55 SHADER_SCALE_TYPE_ABSOLUTE,
63 SHADER_SCALE_TYPE_VIEWPORT
66 typedef enum SHADER_FILTER_TYPE
68 SHADER_FILTER_TYPE_UNSPEC,
69 SHADER_FILTER_TYPE_LINEAR,
70 SHADER_FILTER_TYPE_NEAREST
76 typedef enum SHADER_WRAP_TYPE
78 SHADER_WRAP_TYPE_BORDER,
79 SHADER_WRAP_TYPE_EDGE,
80 SHADER_WRAP_TYPE_REPEAT,
81 SHADER_WRAP_TYPE_MIRRORED_REPEAT
89 SHADER_SCALE_TYPE type;
226 unsigned parameter_count;
266 KODI_HANDLE kodiInstance;
276 KODI_HANDLE addonInstance;
ShaderPreset instance.
Definition shaderpreset.h:298
ShaderPreset properties.
Definition shaderpreset.h:241
const char * addon_path
The path to this add-on.
Definition shaderpreset.h:250
const char * user_path
The path to the user profile.
Definition shaderpreset.h:245
ShaderPreset callbacks.
Definition shaderpreset.h:265
ShaderPreset function hooks.
Definition shaderpreset.h:275
FBO scaling parameters for a single axis.
Definition shaderpreset.h:88
FBO parameters.
Definition shaderpreset.h:101
fbo_scale_axis scale_y
Scaling parameters for Y axis.
Definition shaderpreset.h:125
bool srgb_fbo
sRGB framebuffer
Definition shaderpreset.h:105
fbo_scale_axis scale_x
Scaling parameters for X axis.
Definition shaderpreset.h:120
bool fp_fbo
Float framebuffer.
Definition shaderpreset.h:115
Definition shaderpreset.h:191
SHADER_WRAP_TYPE wrap
Texture wrapping mode.
Definition shaderpreset.h:210
bool mipmap
Use mipmapping for the texture.
Definition shaderpreset.h:215
char * path
Path of the texture.
Definition shaderpreset.h:200
SHADER_FILTER_TYPE filter
Filtering for the texture.
Definition shaderpreset.h:205
char * id
Name of the sampler uniform, e.g. uniform sampler2D foo.
Definition shaderpreset.h:195
Definition shaderpreset.h:129
Definition shaderpreset.h:140
SHADER_WRAP_TYPE wrap
Wrapping mode.
Definition shaderpreset.h:172
bool mipmap
Mipmapping.
Definition shaderpreset.h:182
char * vertex_source
The vertex shader source.
Definition shaderpreset.h:149
char * source_path
Path to the shader pass source.
Definition shaderpreset.h:144
fbo_scale fbo
FBO parameters.
Definition shaderpreset.h:160
char * alias
Aliased pass name.
Definition shaderpreset.h:187
char * fragment_source
The fragment shader source, if separate from the vertex source, or NULL otherwise.
Definition shaderpreset.h:155
unsigned frame_count_mod
Frame count mod.
Definition shaderpreset.h:177
SHADER_FILTER_TYPE filter
Defines how the result of this pass will be filtered.
Definition shaderpreset.h:167
Definition shaderpreset.h:219