/dports/graphics/blender/blender-2.91.0/source/blender/gpu/ |
H A D | GPU_material.h | 39 struct GPUNodeLink; 54 typedef struct GPUNodeLink GPUNodeLink; typedef 118 struct GPUNodeLink *link; 143 GPUNodeLink *GPU_constant(const float *num); 144 GPUNodeLink *GPU_uniform(const float *num); 146 GPUNodeLink *GPU_image(GPUMaterial *mat, 150 GPUNodeLink *GPU_image_tiled(GPUMaterial *mat, 156 GPUNodeLink *GPU_volume_grid(GPUMaterial *mat, 159 GPUNodeLink *GPU_builtin(eGPUBuiltin builtin); 168 GPUNodeLink *GPU_uniformbuf_link_out(struct GPUMaterial *mat, [all …]
|
/dports/graphics/blender/blender-2.91.0/source/blender/gpu/intern/ |
H A D | gpu_node_graph.c | 44 static GPUNodeLink *gpu_node_link_create(void) in gpu_node_link_create() 46 GPUNodeLink *link = MEM_callocN(sizeof(GPUNodeLink), "GPUNodeLink"); in gpu_node_link_create() 52 static void gpu_node_link_free(GPUNodeLink *link) in gpu_node_link_free() 197 GPUNodeLink *link; in gpu_uniformbuffer_link() 383 GPUNodeLink *GPU_constant(const float *num) in GPU_constant() 391 GPUNodeLink *GPU_uniform(const float *num) in GPU_uniform() 399 GPUNodeLink *GPU_image(GPUMaterial *mat, in GPU_image() 494 GPUNodeLink *link, **linkptr; in GPU_link() 513 link = va_arg(params, GPUNodeLink *); in GPU_link() 535 GPUNodeLink *link, **linkptr; in GPU_stack_link() [all …]
|
H A D | gpu_node_graph.h | 80 struct GPUNodeLink { struct 109 GPUNodeLink *link; /* output link */ argument 118 GPUNodeLink *link; 143 GPUNodeLink *outlink;
|
/dports/graphics/blender/blender-2.91.0/source/blender/nodes/shader/nodes/ |
H A D | node_shader_tex_image.c | 73 GPUNodeLink **texco = &in[0].link; in node_shader_gpu_tex_image() 103 GPUNodeLink *gpu_image = GPU_image_tiled(mat, ima, iuser, sampler_state); in node_shader_gpu_tex_image() 104 GPUNodeLink *gpu_image_tile_mapping = GPU_image_tiled_mapping(mat, ima, iuser); in node_shader_gpu_tex_image() 113 GPUNodeLink *gpu_image = GPU_image(mat, ima, iuser, sampler_state); in node_shader_gpu_tex_image() 119 GPUNodeLink *wnor, *col1, *col2, *col3; in node_shader_gpu_tex_image() 120 GPUNodeLink *vnor = GPU_builtin(GPU_WORLD_NORMAL); in node_shader_gpu_tex_image() 121 GPUNodeLink *ob_mat = GPU_builtin(GPU_OBJECT_MATRIX); in node_shader_gpu_tex_image() 122 GPUNodeLink *blend = GPU_uniform(&tex->projection_blend); in node_shader_gpu_tex_image() 123 GPUNodeLink *gpu_image = GPU_image(mat, ima, iuser, sampler_state); in node_shader_gpu_tex_image() 134 GPUNodeLink *gpu_image = GPU_image(mat, ima, iuser, sampler_state); in node_shader_gpu_tex_image() [all …]
|
H A D | node_shader_tex_coord.c | 45 GPUNodeLink *inv_obmat = (ob != NULL) ? GPU_uniform(&ob->imat[0][0]) : in node_shader_gpu_tex_coord() 49 GPUNodeLink *orco = (!out[0].hasoutput) ? GPU_constant((float[4]){0.0f, 0.0f, 0.0f, 0.0f}) : in node_shader_gpu_tex_coord() 51 GPUNodeLink *mtface = GPU_attribute(mat, CD_MTFACE, ""); in node_shader_gpu_tex_coord() 52 GPUNodeLink *viewpos = GPU_builtin(GPU_VIEW_POSITION); in node_shader_gpu_tex_coord() 53 GPUNodeLink *worldnor = GPU_builtin(GPU_WORLD_NORMAL); in node_shader_gpu_tex_coord() 54 GPUNodeLink *texcofacs = GPU_builtin(GPU_CAMERA_TEXCO_FACTORS); in node_shader_gpu_tex_coord()
|
H A D | node_shader_vectTransform.c | 55 static GPUNodeLink *get_gpulink_matrix_from_to(short from, short to) in get_gpulink_matrix_from_to() 97 struct GPUNodeLink *inputlink; in gpu_shader_vect_transform() 98 struct GPUNodeLink *fromto; in gpu_shader_vect_transform()
|
H A D | node_shader_normal_map.c | 58 GPUNodeLink *strength; in gpu_shader_normal_map() 71 GPUNodeLink *newnormal; in gpu_shader_normal_map() 111 GPUNodeLink *oldnormal = GPU_builtin(GPU_WORLD_NORMAL); in gpu_shader_normal_map()
|
H A D | node_shader_vertex_color.c | 43 GPUNodeLink *vertexColorLink = GPU_attribute(mat, CD_PROP_COLOR, vertexColor->layer_name); in node_shader_gpu_vertex_color() 46 GPUNodeLink *vertexColorLink = GPU_attribute(mat, CD_MCOL, vertexColor->layer_name); in node_shader_gpu_vertex_color()
|
H A D | node_shader_geometry.c | 46 GPUNodeLink *bary_link = (!out[5].hasoutput) ? GPU_constant(val) : in node_shader_gpu_geometry() 52 GPUNodeLink *orco_link = (!out[2].hasoutput) ? GPU_constant(val) : in node_shader_gpu_geometry()
|
H A D | node_shader_volume_principled.c | 67 GPUNodeLink *density = NULL, *color = NULL, *temperature = NULL; in node_shader_gpu_volume_principled() 115 GPUNodeLink *spectrummap = GPU_color_band(mat, size, data, &layer); in node_shader_gpu_volume_principled()
|
H A D | node_shader_bsdf_principled.c | 90 GPUNodeLink *sss_scale; in node_shader_gpu_bsdf_principled() 105 GPUNodeLink *orco = GPU_attribute(CD_ORCO, ""); in node_shader_gpu_bsdf_principled()
|
H A D | node_shader_rgb.c | 38 GPUNodeLink *link = GPU_uniformbuf_link_out(mat, node, out, 0); in gpu_shader_rgb()
|
H A D | node_shader_output_world.c | 36 GPUNodeLink *outlink; in node_shader_gpu_output_world()
|
H A D | node_shader_camera.c | 40 GPUNodeLink *viewvec; in gpu_shader_camera()
|
H A D | node_shader_curves.c | 70 GPUNodeLink *tex = GPU_color_band(mat, size, array, &layer); in gpu_shader_curve_vec() 173 GPUNodeLink *tex = GPU_color_band(mat, size, array, &layer); in gpu_shader_curve_rgb()
|
H A D | node_shader_blackbody.c | 45 GPUNodeLink *ramp_texture = GPU_color_band(mat, size, data, &layer); in node_shader_gpu_blackbody()
|
H A D | node_shader_value.cc | 38 GPUNodeLink *link = GPU_uniformbuf_link_out(mat, node, out, 0); in gpu_shader_value()
|
H A D | node_shader_uvmap.c | 44 GPUNodeLink *mtface = GPU_attribute(mat, CD_MTFACE, attr->uv_map); in node_shader_gpu_uvmap()
|
H A D | node_shader_normal.c | 63 GPUNodeLink *vec = GPU_uniform(out[0].vec); in gpu_shader_normal()
|
H A D | node_shader_output_material.c | 48 GPUNodeLink *outlink, *alpha_threshold_link, *shadow_threshold_link; in node_shader_gpu_output_material()
|
H A D | node_shader_tangent.c | 49 GPUNodeLink *orco = GPU_attribute(mat, CD_ORCO, ""); in node_shader_gpu_tangent()
|
H A D | node_shader_attribute.c | 59 GPUNodeLink *cd_attr = GPU_attribute(mat, CD_AUTO_FROM_NAME, attr->name); in node_shader_gpu_attribute()
|
H A D | node_shader_tex_environment.c | 65 GPUNodeLink *outalpha; in node_shader_gpu_tex_environment()
|
/dports/graphics/blender/blender-2.91.0/source/blender/nodes/shader/ |
H A D | node_shader_util.h | 102 struct GPUNodeLink **link); 105 struct GPUNodeLink **link);
|
H A D | node_shader_util.c | 272 void node_shader_gpu_bump_tex_coord(GPUMaterial *mat, bNode *node, GPUNodeLink **link) in node_shader_gpu_bump_tex_coord() 287 void node_shader_gpu_default_tex_coord(GPUMaterial *mat, bNode *node, GPUNodeLink **link) in node_shader_gpu_default_tex_coord() 309 GPUNodeLink *tmin, *tmax, *tmat0, *tmat1, *tmat2, *tmat3; in node_shader_gpu_tex_mapping()
|