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