Blender  V3.3
Classes | Typedefs | Functions
node_texture_util.h File Reference
#include <math.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "DNA_ID.h"
#include "DNA_color_types.h"
#include "DNA_image_types.h"
#include "DNA_material_types.h"
#include "DNA_node_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "DNA_texture_types.h"
#include "BLI_math_vector.h"
#include "BLI_rand.h"
#include "BLI_threads.h"
#include "BLI_utildefines.h"
#include "BKE_colorband.h"
#include "BKE_colortools.h"
#include "BKE_global.h"
#include "BKE_image.h"
#include "BKE_main.h"
#include "BKE_material.h"
#include "BKE_node.h"
#include "BKE_texture.h"
#include "NOD_texture.h"
#include "node_util.h"
#include "BLT_translation.h"
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "RE_pipeline.h"
#include "RE_texture.h"

Go to the source code of this file.

Classes

struct  TexCallData
 
struct  TexParams
 
struct  TexDelegate
 

Typedefs

typedef struct TexCallData TexCallData
 
typedef struct TexParams TexParams
 
typedef void(* TexFn) (float *out, TexParams *params, bNode *node, bNodeStack **in, short thread)
 
typedef struct TexDelegate TexDelegate
 

Functions

bool tex_node_poll_default (struct bNodeType *ntype, struct bNodeTree *ntree, const char **r_disabled_hint)
 
void tex_node_type_base (struct 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)
 
struct bNodeThreadStackntreeGetThreadStack (struct bNodeTreeExec *exec, int thread)
 
void ntreeReleaseThreadStack (struct bNodeThreadStack *nts)
 
bool ntreeExecThreadNodes (struct bNodeTreeExec *exec, struct bNodeThreadStack *nts, void *callerdata, int thread)
 
struct bNodeTreeExecntreeTexBeginExecTree_internal (struct bNodeExecContext *context, struct bNodeTree *ntree, bNodeInstanceKey parent_key)
 
void ntreeTexEndExecTree_internal (struct bNodeTreeExec *exec)
 

Typedef Documentation

◆ TexCallData

typedef struct TexCallData TexCallData

◆ TexDelegate

typedef struct TexDelegate TexDelegate

◆ TexFn

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

Definition at line 81 of file node_texture_util.h.

◆ TexParams

typedef struct TexParams TexParams

Function Documentation

◆ ntreeExecThreadNodes()

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

◆ ntreeGetThreadStack()

struct bNodeThreadStack* ntreeGetThreadStack ( struct bNodeTreeExec exec,
int  thread 
)

◆ ntreeReleaseThreadStack()

void ntreeReleaseThreadStack ( struct bNodeThreadStack nts)

Definition at line 182 of file node_texture_tree.c.

References bNodeThreadStack::used.

Referenced by group_execute(), and ntreeTexExecTree().

◆ ntreeTexBeginExecTree_internal()

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

◆ ntreeTexEndExecTree_internal()

void ntreeTexEndExecTree_internal ( struct bNodeTreeExec exec)

◆ params_from_cdata()

void params_from_cdata ( TexParams out,
TexCallData in 
)

◆ tex_input_rgba()

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

◆ tex_input_value()

float tex_input_value ( bNodeStack in,
TexParams params,
short  thread 
)

◆ tex_input_vec()

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

Definition at line 65 of file node_texture_util.c.

References usdtokens::out(), params, and tex_input().

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

◆ tex_node_poll_default()

bool tex_node_poll_default ( struct bNodeType ntype,
struct bNodeTree ntree,
const char **  r_disabled_hint 
)

◆ tex_node_type_base()

void tex_node_type_base ( struct bNodeType ntype,
int  type,
const char *  name,
short  nclass 
)

◆ tex_output()

void tex_output ( bNode node,
bNodeExecData execdata,
bNodeStack **  in,
bNodeStack out,
TexFn  texfn,
TexCallData data 
)