Blender  V3.3
FX_shader_util.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2018 Blender Foundation. */
3 
8 #include <stdio.h>
9 
10 #include "MEM_guardedalloc.h"
11 
12 #include "BLI_utildefines.h"
13 
14 #include "BKE_shader_fx.h"
15 
16 #include "FX_shader_types.h"
17 #include "FX_shader_util.h"
18 
20 {
21 #define INIT_FX_TYPE(typeName) (types[eShaderFxType_##typeName] = &shaderfx_Type_##typeName)
22  INIT_FX_TYPE(Blur);
23  INIT_FX_TYPE(Colorize);
24  INIT_FX_TYPE(Flip);
25  INIT_FX_TYPE(Glow);
26  INIT_FX_TYPE(Pixel);
27  INIT_FX_TYPE(Rim);
28  INIT_FX_TYPE(Shadow);
29  INIT_FX_TYPE(Swirl);
30  INIT_FX_TYPE(Wave);
31 #undef INIT_FX_TYPE
32 }
#define INIT_FX_TYPE(typeName)
void shaderfx_type_init(ShaderFxTypeInfo *types[])
Read Guarded memory(de)allocation.
static char ** types
Definition: makesdna.c:67