25 #define SHADER_FX_ACTIVE(_fx, _is_render) \
26 ((((_fx)->mode & eShaderFxMode_Realtime) && (_is_render == false)) || \
27 (((_fx)->mode & eShaderFxMode_Render) && (_is_render == true)))
28 #define SHADER_FX_EDIT(_fx, _is_edit) ((((_fx)->mode & eShaderFxMode_Editmode) == 0) && (_is_edit))
60 const char *propname);
136 #define SHADERFX_TYPE_PANEL_PREFIX "FX_PT_"
bool BKE_shaderfx_depends_ontime(struct ShaderFxData *fx)
void BKE_shaderfx_foreach_ID_link(struct Object *ob, ShaderFxIDWalkFunc walk, void *userData)
@ eShaderFxType_GpencilType
void BKE_shaderfx_init(void)
void BKE_shaderfx_copy(struct ListBase *dst, const struct ListBase *src)
void(* ShaderFxIDWalkFunc)(void *userData, struct Object *ob, struct ID **idpoin, int cb_flag)
void BKE_shaderfx_free_ex(struct ShaderFxData *fx, int flag)
void BKE_shaderfx_blend_write(struct BlendWriter *writer, struct ListBase *fxbase)
void BKE_shaderfxType_panel_id(ShaderFxType type, char *r_idname)
bool BKE_shaderfx_has_gpencil(const struct Object *ob)
struct ShaderFxData * BKE_shaderfx_findby_type(struct Object *ob, ShaderFxType type)
void BKE_shaderfx_free(struct ShaderFxData *fx)
void BKE_shaderfx_copydata(struct ShaderFxData *fx, struct ShaderFxData *target)
const ShaderFxTypeInfo * BKE_shaderfx_get_info(ShaderFxType type)
void BKE_shaderfx_blend_read_lib(struct BlendLibReader *reader, struct Object *ob)
struct ShaderFxTypeInfo ShaderFxTypeInfo
struct ShaderFxData * BKE_shaderfx_new(int type)
void(* ShaderFxTexWalkFunc)(void *userData, struct Object *ob, struct ShaderFxData *fx, const char *propname)
void BKE_shaderfx_panel_expand(struct ShaderFxData *fx)
void BKE_shaderfx_copydata_ex(struct ShaderFxData *fx, struct ShaderFxData *target, int flag)
struct ShaderFxData * BKE_shaderfx_findby_name(struct Object *ob, const char *name)
bool BKE_shaderfx_is_nonlocal_in_liboverride(const struct Object *ob, const struct ShaderFxData *shaderfx)
void BKE_shaderfx_copydata_generic(const struct ShaderFxData *fx_src, struct ShaderFxData *fx_dst)
@ eShaderFxTypeFlag_SupportsEditmode
@ eShaderFxTypeFlag_NoUserAdd
@ eShaderFxTypeFlag_EnableInEditmode
@ eShaderFxTypeFlag_Single
bool BKE_shaderfx_unique_name(struct ListBase *shaderfx, struct ShaderFxData *fx)
void BKE_shaderfx_blend_read_data(struct BlendDataReader *reader, struct ListBase *lb)
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
SyclQueue void void * src
SyclQueue void void size_t num_bytes void
void(* freeData)(struct ShaderFxData *fx)
void(* copyData)(const struct ShaderFxData *fx, struct ShaderFxData *target)
bool(* isDisabled)(struct ShaderFxData *fx, int userRenderParams)
void(* updateDepsgraph)(struct ShaderFxData *fx, const struct ModifierUpdateDepsgraphContext *ctx)
void(* foreachIDLink)(struct ShaderFxData *fx, struct Object *ob, ShaderFxIDWalkFunc walk, void *userData)
bool(* dependsOnTime)(struct ShaderFxData *fx)
void(* initData)(struct ShaderFxData *fx)
void(* panelRegister)(struct ARegionType *region_type)