Blender V4.3
node_texture_util.hh File Reference
#include "BKE_node.hh"
#include "node_texture_register.hh"
#include "BLT_translation.hh"
#include "RE_texture.h"

Go to the source code of this file.

Classes

struct  TexCallData
 
struct  TexParams
 
struct  TexDelegate
 

Typedefs

using TexFn = void (*)(float *out, TexParams *params, bNode *node, bNodeStack **in, short thread)
 

Functions

bool tex_node_poll_default (const blender::bke::bNodeType *ntype, const bNodeTree *ntree, const char **r_disabled_hint)
 
void tex_node_type_base (blender::bke::bNodeType *ntype, int type, const char *name, short nclass)
 
void tex_input_rgba (float *out, bNodeStack *in, TexParams *params, short thread)
 
void tex_input_vec (float *out, bNodeStack *in, TexParams *params, short thread)
 
float tex_input_value (bNodeStack *in, TexParams *params, short thread)
 
void tex_output (bNode *node, bNodeExecData *execdata, bNodeStack **in, bNodeStack *out, TexFn texfn, TexCallData *data)
 
void params_from_cdata (TexParams *out, TexCallData *in)
 
bNodeThreadStackntreeGetThreadStack (bNodeTreeExec *exec, int thread)
 
void ntreeReleaseThreadStack (bNodeThreadStack *nts)
 
bool ntreeExecThreadNodes (bNodeTreeExec *exec, bNodeThreadStack *nts, void *callerdata, int thread)
 
bNodeTreeExecntreeTexBeginExecTree_internal (bNodeExecContext *context, bNodeTree *ntree, bNodeInstanceKey parent_key)
 
void ntreeTexEndExecTree_internal (bNodeTreeExec *exec)
 

Typedef Documentation

◆ TexFn

using TexFn = void (*)(float *out, TexParams *params, bNode *node, bNodeStack **in, short thread)

Definition at line 49 of file node_texture_util.hh.

Function Documentation

◆ ntreeExecThreadNodes()

bool ntreeExecThreadNodes ( bNodeTreeExec * exec,
bNodeThreadStack * nts,
void * callerdata,
int thread )

◆ ntreeGetThreadStack()

◆ ntreeReleaseThreadStack()

void ntreeReleaseThreadStack ( bNodeThreadStack * nts)

Definition at line 180 of file node_texture_tree.cc.

References bNodeThreadStack::used.

Referenced by group_execute(), and ntreeTexExecTree().

◆ ntreeTexBeginExecTree_internal()

bNodeTreeExec * ntreeTexBeginExecTree_internal ( bNodeExecContext * context,
bNodeTree * ntree,
bNodeInstanceKey parent_key )

◆ ntreeTexEndExecTree_internal()

void ntreeTexEndExecTree_internal ( bNodeTreeExec * exec)

◆ params_from_cdata()

void params_from_cdata ( TexParams * out,
TexCallData * in )

Definition at line 100 of file node_texture_util.cc.

Referenced by exec(), and exec().

◆ tex_input_rgba()

◆ tex_input_value()

◆ tex_input_vec()

void tex_input_vec ( float * out,
bNodeStack * in,
TexParams * params,
short thread )

Definition at line 71 of file node_texture_util.cc.

References params, and tex_input().

Referenced by colorfn(), colorfn(), colorfn(), colorfn(), tex_input_value(), and valuefn().

◆ tex_node_poll_default()

bool tex_node_poll_default ( const blender::bke::bNodeType * ntype,
const bNodeTree * ntree,
const char ** r_disabled_hint )

Definition at line 32 of file node_texture_util.cc.

References bNodeTree::idname, RPT_, and STREQ.

Referenced by register_node_type_tex_group(), and tex_node_type_base().

◆ tex_node_type_base()

◆ tex_output()