Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/node_shader_util.c
| Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Lines | void ntreeShaderGetTexcoMode(bNodeTree *ntree, int r_mode, short *texco, int *mode) | ||||
| } | } | ||||
| } | } | ||||
| void node_gpu_stack_from_data(struct GPUNodeStack *gs, int type, bNodeStack *ns) | void node_gpu_stack_from_data(struct GPUNodeStack *gs, int type, bNodeStack *ns) | ||||
| { | { | ||||
| memset(gs, 0, sizeof(*gs)); | memset(gs, 0, sizeof(*gs)); | ||||
| if (ns == NULL) { | if (ns == NULL) { | ||||
| /* node_get_stack() will generate NULL bNodeStack pointers for unknown/unsuported types of sockets... */ | /* node_get_stack() will generate NULL bNodeStack pointers for unknown/unsupported types of sockets... */ | ||||
| zero_v4(gs->vec); | zero_v4(gs->vec); | ||||
| gs->link = NULL; | gs->link = NULL; | ||||
| gs->type = GPU_NONE; | gs->type = GPU_NONE; | ||||
| gs->name = ""; | gs->name = ""; | ||||
| gs->hasinput = false; | gs->hasinput = false; | ||||
| gs->hasoutput = false; | gs->hasoutput = false; | ||||
| gs->sockettype = type; | gs->sockettype = type; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 163 Lines • Show Last 20 Lines | |||||