Blender  V2.93
gpu_shader_builtin.c
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2005 Blender Foundation.
17  * All rights reserved.
18  */
19 
24 #include "MEM_guardedalloc.h"
25 
26 #include "BLI_math_base.h"
27 #include "BLI_math_vector.h"
28 #include "BLI_path_util.h"
29 #include "BLI_string.h"
30 #include "BLI_string_utils.h"
31 #include "BLI_utildefines.h"
32 
33 #include "BKE_appdir.h"
34 #include "BKE_global.h"
35 
36 #include "DNA_space_types.h"
37 
38 #include "GPU_matrix.h"
39 #include "GPU_platform.h"
40 #include "GPU_shader.h"
41 #include "GPU_texture.h"
42 #include "GPU_uniform_buffer.h"
43 
44 /* Adjust these constants as needed. */
45 #define MAX_DEFINE_LENGTH 256
46 #define MAX_EXT_DEFINE_LENGTH 512
47 
48 /* Non-generated shaders */
73 
93 
95 
111 
118 
122 
127 
131 
133 
135 
138  {
139  .lib = "",
140  .def = "#define blender_srgb_to_framebuffer_space(a) a\n",
141  },
143  {
145  .def = "#define USE_WORLD_CLIP_PLANES\n"
146  "#define blender_srgb_to_framebuffer_space(a) a\n",
147  },
148 };
149 
150 /* cache of built-in shaders (each is created on first use) */
152 
153 typedef struct {
154  const char *name;
155  const char *vert;
157  const char *geom;
158  const char *frag;
160  const char *defs;
162 
164  [GPU_SHADER_TEXT] =
165  {
166  .name = "GPU_SHADER_TEXT",
169  },
171  {
172  .name = "GPU_SHADER_KEYFRAME_DIAMOND",
175  },
177  {
178  .name = "GPU_SHADER_SIMPLE_LIGHTING",
181  },
183  {
186  },
188  {
189  .name = "GPU_SHADER_2D_CHECKER",
192  },
193 
195  {
196  .name = "GPU_SHADER_2D_DIAG_STRIPES",
199  },
200 
202  {
203  .name = "GPU_SHADER_2D_UNIFORM_COLOR",
206  },
208  {
209  .name = "GPU_SHADER_2D_FLAT_COLOR",
212  },
214  {
215  .name = "GPU_SHADER_2D_SMOOTH_COLOR",
218  },
220  {
221  .name = "GPU_SHADER_2D_IMAGE_OVERLAYS_MERGE",
224  },
226  {
227  .name = "GPU_SHADER_2D_IMAGE_OVERLAYS_STEREO_MERGE",
230  },
232  {
233  .name = "GPU_SHADER_2D_IMAGE",
236  },
238  {
239  .name = "GPU_SHADER_2D_IMAGE_COLOR",
242  },
244  {
245  .name = "GPU_SHADER_2D_IMAGE_DESATURATE_COLOR",
248  },
250  {
251  .name = "GPU_SHADER_2D_IMAGE_SHUFFLE_COLOR",
254  },
256  {
257  .name = "GPU_SHADER_2D_IMAGE_RECT_COLOR",
260  },
262  {
263  .name = "GPU_SHADER_2D_IMAGE_MULTI_RECT_COLOR",
266  },
267 
269  {
270  .name = "GPU_SHADER_3D_UNIFORM_COLOR",
273  },
275  {
276  .name = "GPU_SHADER_3D_FLAT_COLOR",
279  },
281  {
282  .name = "GPU_SHADER_3D_SMOOTH_COLOR",
285  },
287  {
288  .name = "GPU_SHADER_3D_DEPTH_ONLY",
291  },
293  {
294  .name = "GPU_SHADER_3D_CLIPPED_UNIFORM_COLOR",
297  },
298 
300  {
301  .name = "GPU_SHADER_3D_POLYLINE_UNIFORM_COLOR",
305  .defs = "#define UNIFORM\n",
306  },
308  {
309  .name = "GPU_SHADER_3D_POLYLINE_CLIPPED_UNIFORM_COLOR",
313  .defs = "#define UNIFORM\n"
314  "#define CLIP\n",
315  },
317  {
318  .name = "GPU_SHADER_3D_POLYLINE_FLAT_COLOR",
322  .defs = "#define FLAT\n",
323  },
325  {
326  .name = "GPU_SHADER_3D_POLYLINE_SMOOTH_COLOR",
330  .defs = "#define SMOOTH\n",
331  },
332 
334  {
335  .name = "GPU_SHADER_2D_LINE_DASHED_UNIFORM_COLOR",
338  },
340  {
341  .name = "GPU_SHADER_3D_LINE_DASHED_UNIFORM_COLOR",
344  },
345 
347  {
348  .name = "GPU_SHADER_2D_POINT_FIXED_SIZE_UNIFORM_COLOR",
351  },
353  {
354  .name = "GPU_SHADER_2D_POINT_VARYING_SIZE_VARYING_COLOR",
357  },
359  {
360  .name = "GPU_SHADER_2D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_AA",
363  },
365  {
366  .name = "GPU_SHADER_2D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_OUTLINE_AA",
369  },
371  {
372  .name = "GPU_SHADER_2D_POINT_UNIFORM_SIZE_VARYING_COLOR_OUTLINE_AA",
375  },
377  {
378  .name = "GPU_SHADER_3D_POINT_FIXED_SIZE_UNIFORM_COLOR",
381  },
383  {
384  .name = "GPU_SHADER_3D_POINT_FIXED_SIZE_VARYING_COLOR",
387  },
389  {
390  .name = "GPU_SHADER_3D_POINT_VARYING_SIZE_UNIFORM_COLOR",
393  },
395  {
396  .name = "GPU_SHADER_3D_POINT_VARYING_SIZE_VARYING_COLOR",
399  },
401  {
402  .name = "GPU_SHADER_3D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_AA",
405  },
407  {
408  .name = "GPU_SHADER_3D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_OUTLINE_AA",
411  },
412 
414  {
415  .name = "GPU_SHADER_INSTANCE_VARIYING_COLOR_VARIYING_SIZE",
418  .defs = "#define UNIFORM_SCALE\n",
419  },
420 
422  {
423  .name = "GPU_SHADER_2D_AREA_EDGES",
426  },
428  {
429  .name = "GPU_SHADER_2D_WIDGET_BASE",
432  },
434  {
435  .name = "GPU_SHADER_2D_WIDGET_BASE_INST",
438  .defs = "#define USE_INSTANCE\n",
439  },
441  {
442  .name = "GPU_SHADER_2D_WIDGET_SHADOW",
445  },
447  {
448  .name = "GPU_SHADER_2D_NODELINK",
451  },
453  {
454  .name = "GPU_SHADER_2D_NODELINK_INST",
457  .defs = "#define USE_INSTANCE\n",
458  },
459 
461  {
462  .name = "GPU_SHADER_2D_UV_UNIFORM_COLOR",
465  .defs = "#define UV_POS\n",
466  },
468  {
469  .name = "GPU_SHADER_2D_UV_VERTS",
472  },
474  {
475  .name = "GPU_SHADER_2D_UV_FACEDOTS",
478  },
480  {
481  .name = "GPU_SHADER_2D_UV_EDGES",
484  },
486  {
487  .name = "GPU_SHADER_2D_UV_EDGES_SMOOTH",
490  .defs = "#define SMOOTH_COLOR\n",
491  },
493  {
494  .name = "GPU_SHADER_2D_UV_FACES",
497  },
499  {
500  .name = "GPU_SHADER_2D_UV_FACES_STRETCH_AREA",
503  },
505  {
506  .name = "GPU_SHADER_2D_UV_FACES_STRETCH_ANGLE",
509  .defs = "#define STRETCH_ANGLE\n",
510  },
511 
513  {
514  .name = "GPU_SHADER_GPENCIL_STROKE",
518  },
519 };
520 
522  eGPUShaderConfig sh_cfg)
523 {
525  BLI_assert(sh_cfg < GPU_SHADER_CFG_LEN);
526  GPUShader **sh_p = &builtin_shaders[sh_cfg][shader];
527 
528  if (*sh_p == NULL) {
529  const GPUShaderStages *stages = &builtin_shader_stages[shader];
530 
531  /* common case */
532  if (sh_cfg == GPU_SHADER_CFG_DEFAULT) {
534  stages->name,
535  {
536  .vert = (const char *[]){stages->vert, NULL},
537  .geom = (const char *[]){stages->geom, NULL},
538  .frag = (const char *[]){datatoc_gpu_shader_colorspace_lib_glsl, stages->frag, NULL},
539  .defs = (const char *[]){stages->defs, NULL},
540  });
541  }
542  else if (sh_cfg == GPU_SHADER_CFG_CLIPPED) {
543  /* Remove eventually, for now ensure support for each shader has been added. */
553  const char *world_clip_lib = datatoc_gpu_shader_cfg_world_clip_lib_glsl;
554  const char *world_clip_def = "#define USE_WORLD_CLIP_PLANES\n";
555  /* In rare cases geometry shaders calculate clipping themselves. */
557  stages->name,
558  {
559  .vert = (const char *[]){world_clip_lib, stages->vert, NULL},
560  .geom = (const char *[]){stages->geom ? world_clip_lib : NULL, stages->geom, NULL},
561  .frag = (const char *[]){datatoc_gpu_shader_colorspace_lib_glsl, stages->frag, NULL},
562  .defs = (const char *[]){world_clip_def, stages->defs, NULL},
563  });
564  }
565  else {
566  BLI_assert(0);
567  }
568  }
569 
570  return *sh_p;
571 }
572 
574 {
576 }
577 
579  const char **r_vert,
580  const char **r_frag,
581  const char **r_geom,
582  const char **r_defines)
583 {
584  const GPUShaderStages *stages = &builtin_shader_stages[shader];
585  *r_vert = stages->vert;
586  *r_frag = stages->frag;
587  *r_geom = stages->geom;
588  *r_defines = stages->defs;
589 }
590 
592 {
593  for (int i = 0; i < GPU_SHADER_CFG_LEN; i++) {
594  for (int j = 0; j < GPU_SHADER_BUILTIN_LEN; j++) {
595  if (builtin_shaders[i][j]) {
597  builtin_shaders[i][j] = NULL;
598  }
599  }
600  }
601 }
#define BLI_assert(a)
Definition: BLI_assert.h:58
#define ELEM(...)
#define GPU_shader_create_from_arrays_named(name,...)
Definition: GPU_shader.h:73
struct GPUShader GPUShader
Definition: GPU_shader.h:33
eGPUShaderConfig
Definition: GPU_shader.h:391
@ GPU_SHADER_CFG_DEFAULT
Definition: GPU_shader.h:392
@ GPU_SHADER_CFG_CLIPPED
Definition: GPU_shader.h:393
#define GPU_SHADER_BUILTIN_LEN
Definition: GPU_shader.h:388
eGPUBuiltinShader
Definition: GPU_shader.h:159
@ GPU_SHADER_2D_DIAG_STRIPES
Definition: GPU_shader.h:192
@ GPU_SHADER_2D_POINT_VARYING_SIZE_VARYING_COLOR
Definition: GPU_shader.h:309
@ GPU_SHADER_3D_SMOOTH_COLOR
Definition: GPU_shader.h:215
@ GPU_SHADER_2D_UV_EDGES
Definition: GPU_shader.h:382
@ GPU_SHADER_GPENCIL_STROKE
Definition: GPU_shader.h:370
@ GPU_SHADER_2D_AREA_EDGES
Definition: GPU_shader.h:372
@ GPU_SHADER_2D_NODELINK_INST
Definition: GPU_shader.h:377
@ GPU_SHADER_3D_LINE_DASHED_UNIFORM_COLOR
Definition: GPU_shader.h:366
@ GPU_SHADER_3D_POLYLINE_SMOOTH_COLOR
Definition: GPU_shader.h:240
@ GPU_SHADER_3D_POINT_VARYING_SIZE_VARYING_COLOR
Definition: GPU_shader.h:363
@ GPU_SHADER_2D_LINE_DASHED_UNIFORM_COLOR
Definition: GPU_shader.h:365
@ GPU_SHADER_2D_UV_FACES
Definition: GPU_shader.h:384
@ GPU_SHADER_3D_POLYLINE_UNIFORM_COLOR
Definition: GPU_shader.h:223
@ GPU_SHADER_2D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_AA
Definition: GPU_shader.h:278
@ GPU_SHADER_2D_IMAGE_DESATURATE_COLOR
Definition: GPU_shader.h:188
@ GPU_SHADER_2D_POINT_UNIFORM_SIZE_VARYING_COLOR_OUTLINE_AA
Definition: GPU_shader.h:300
@ GPU_SHADER_3D_DEPTH_ONLY
Definition: GPU_shader.h:247
@ GPU_SHADER_TEXT
Definition: GPU_shader.h:161
@ GPU_SHADER_3D_CLIPPED_UNIFORM_COLOR
Definition: GPU_shader.h:201
@ GPU_SHADER_2D_UV_UNIFORM_COLOR
Definition: GPU_shader.h:379
@ GPU_SHADER_3D_IMAGE_MODULATE_ALPHA
Definition: GPU_shader.h:260
@ GPU_SHADER_2D_CHECKER
Definition: GPU_shader.h:191
@ GPU_SHADER_3D_POINT_FIXED_SIZE_UNIFORM_COLOR
Definition: GPU_shader.h:317
@ GPU_SHADER_3D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_AA
Definition: GPU_shader.h:334
@ GPU_SHADER_2D_IMAGE_MULTI_RECT_COLOR
Definition: GPU_shader.h:190
@ GPU_SHADER_2D_SMOOTH_COLOR
Definition: GPU_shader.h:185
@ GPU_SHADER_2D_UNIFORM_COLOR
Definition: GPU_shader.h:171
@ GPU_SHADER_3D_POINT_FIXED_SIZE_VARYING_COLOR
Definition: GPU_shader.h:325
@ GPU_SHADER_3D_UNIFORM_COLOR
Definition: GPU_shader.h:200
@ GPU_SHADER_2D_IMAGE_RECT_COLOR
Definition: GPU_shader.h:189
@ GPU_SHADER_3D_FLAT_COLOR
Definition: GPU_shader.h:208
@ GPU_SHADER_3D_POINT_VARYING_SIZE_UNIFORM_COLOR
Definition: GPU_shader.h:354
@ GPU_SHADER_2D_UV_VERTS
Definition: GPU_shader.h:380
@ GPU_SHADER_2D_WIDGET_BASE_INST
Definition: GPU_shader.h:374
@ GPU_SHADER_2D_IMAGE_SHUFFLE_COLOR
Definition: GPU_shader.h:251
@ GPU_SHADER_2D_IMAGE_OVERLAYS_STEREO_MERGE
Definition: GPU_shader.h:250
@ GPU_SHADER_2D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_OUTLINE_AA
Definition: GPU_shader.h:289
@ GPU_SHADER_2D_IMAGE
Definition: GPU_shader.h:186
@ GPU_SHADER_3D_POLYLINE_FLAT_COLOR
Definition: GPU_shader.h:232
@ GPU_SHADER_INSTANCE_VARIYING_COLOR_VARIYING_SIZE
Definition: GPU_shader.h:368
@ GPU_SHADER_SIMPLE_LIGHTING
Definition: GPU_shader.h:163
@ GPU_SHADER_2D_UV_FACEDOTS
Definition: GPU_shader.h:381
@ GPU_SHADER_KEYFRAME_DIAMOND
Definition: GPU_shader.h:162
@ GPU_SHADER_2D_IMAGE_COLOR
Definition: GPU_shader.h:187
@ GPU_SHADER_2D_WIDGET_SHADOW
Definition: GPU_shader.h:375
@ GPU_SHADER_2D_FLAT_COLOR
Definition: GPU_shader.h:178
@ GPU_SHADER_2D_POINT_FIXED_SIZE_UNIFORM_COLOR
Definition: GPU_shader.h:269
@ GPU_SHADER_2D_WIDGET_BASE
Definition: GPU_shader.h:373
@ GPU_SHADER_3D_POINT_UNIFORM_SIZE_UNIFORM_COLOR_OUTLINE_AA
Definition: GPU_shader.h:345
@ GPU_SHADER_3D_POLYLINE_CLIPPED_UNIFORM_COLOR
Definition: GPU_shader.h:224
@ GPU_SHADER_2D_IMAGE_OVERLAYS_MERGE
Definition: GPU_shader.h:249
@ GPU_SHADER_2D_UV_EDGES_SMOOTH
Definition: GPU_shader.h:383
@ GPU_SHADER_2D_NODELINK
Definition: GPU_shader.h:376
@ GPU_SHADER_2D_UV_FACES_STRETCH_ANGLE
Definition: GPU_shader.h:386
@ GPU_SHADER_2D_UV_FACES_STRETCH_AREA
Definition: GPU_shader.h:385
void GPU_shader_free(GPUShader *shader)
Definition: gpu_shader.cc:365
#define GPU_SHADER_CFG_LEN
Definition: GPU_shader.h:395
Read Guarded memory(de)allocation.
char datatoc_gpu_shader_3D_point_fixed_size_varying_color_vert_glsl[]
char datatoc_gpu_shader_image_desaturate_frag_glsl[]
char datatoc_gpu_shader_2D_edituvs_edges_vert_glsl[]
char datatoc_gpu_shader_uniform_color_frag_glsl[]
char datatoc_gpu_shader_cfg_world_clip_lib_glsl[]
char datatoc_gpu_shader_3D_smooth_color_frag_glsl[]
const struct GPUShaderConfigData GPU_shader_cfg_data[GPU_SHADER_CFG_LEN]
char datatoc_gpu_shader_3D_flat_color_vert_glsl[]
char datatoc_gpu_shader_image_modulate_alpha_frag_glsl[]
char datatoc_gpu_shader_2D_edituvs_stretch_vert_glsl[]
char datatoc_gpu_shader_3D_point_varying_size_varying_color_vert_glsl[]
char datatoc_gpu_shader_simple_lighting_frag_glsl[]
char datatoc_gpu_shader_2D_nodelink_frag_glsl[]
char datatoc_gpu_shader_2D_image_multi_rect_vert_glsl[]
char datatoc_gpu_shader_2D_flat_color_vert_glsl[]
char datatoc_gpu_shader_2D_line_dashed_frag_glsl[]
char datatoc_gpu_shader_depth_only_frag_glsl[]
char datatoc_gpu_shader_point_uniform_color_outline_aa_frag_glsl[]
char datatoc_gpu_shader_2D_smooth_color_uniform_alpha_vert_glsl[]
char datatoc_gpu_shader_instance_variying_size_variying_color_vert_glsl[]
GPUShader * GPU_shader_get_builtin_shader_with_config(eGPUBuiltinShader shader, eGPUShaderConfig sh_cfg)
char datatoc_gpu_shader_keyframe_diamond_vert_glsl[]
char datatoc_gpu_shader_3D_point_uniform_size_outline_aa_vert_glsl[]
void GPU_shader_free_builtin_shaders(void)
char datatoc_gpu_shader_gpencil_stroke_geom_glsl[]
char datatoc_gpu_shader_flat_color_alpha_test_0_frag_glsl[]
char datatoc_gpu_shader_image_varying_color_frag_glsl[]
char datatoc_gpu_shader_2D_widget_base_vert_glsl[]
char datatoc_gpu_shader_flat_id_frag_glsl[]
char datatoc_gpu_shader_gpencil_stroke_frag_glsl[]
char datatoc_gpu_shader_2D_widget_shadow_vert_glsl[]
char datatoc_gpu_shader_image_color_frag_glsl[]
char datatoc_gpu_shader_3D_normal_vert_glsl[]
char datatoc_gpu_shader_2D_point_uniform_size_aa_vert_glsl[]
static GPUShader * builtin_shaders[GPU_SHADER_CFG_LEN][GPU_SHADER_BUILTIN_LEN]
char datatoc_gpu_shader_3D_clipped_uniform_color_vert_glsl[]
char datatoc_gpu_shader_gpencil_stroke_vert_glsl[]
char datatoc_gpu_shader_3D_line_dashed_uniform_color_vert_glsl[]
char datatoc_gpu_shader_2D_widget_shadow_frag_glsl[]
char datatoc_gpu_shader_2D_edituvs_edges_frag_glsl[]
char datatoc_gpu_shader_text_frag_glsl[]
char datatoc_gpu_shader_colorspace_lib_glsl[]
Definition: gpu_shader.cc:53
char datatoc_gpu_shader_point_uniform_color_aa_frag_glsl[]
char datatoc_gpu_shader_3D_point_varying_size_vert_glsl[]
char datatoc_gpu_shader_2D_nodelink_vert_glsl[]
char datatoc_gpu_shader_image_overlays_merge_frag_glsl[]
char datatoc_gpu_shader_2D_area_borders_frag_glsl[]
char datatoc_gpu_shader_2D_area_borders_vert_glsl[]
char datatoc_gpu_shader_2D_image_vert_glsl[]
char datatoc_gpu_shader_point_varying_color_frag_glsl[]
char datatoc_gpu_shader_point_varying_color_outline_aa_frag_glsl[]
GPUShader * GPU_shader_get_builtin_shader(eGPUBuiltinShader shader)
void GPU_shader_get_builtin_shader_code(eGPUBuiltinShader shader, const char **r_vert, const char **r_frag, const char **r_geom, const char **r_defines)
char datatoc_gpu_shader_2D_image_rect_vert_glsl[]
char datatoc_gpu_shader_image_shuffle_color_frag_glsl[]
char datatoc_gpu_shader_3D_polyline_vert_glsl[]
char datatoc_gpu_shader_2D_point_uniform_size_varying_color_outline_aa_vert_glsl[]
char datatoc_gpu_shader_keyframe_diamond_frag_glsl[]
char datatoc_gpu_shader_point_varying_color_varying_outline_aa_frag_glsl[]
char datatoc_gpu_shader_3D_point_uniform_size_aa_vert_glsl[]
char datatoc_gpu_shader_point_uniform_color_frag_glsl[]
char datatoc_gpu_shader_diag_stripes_frag_glsl[]
char datatoc_gpu_shader_3D_smooth_color_vert_glsl[]
char datatoc_gpu_shader_2D_point_uniform_size_outline_aa_vert_glsl[]
char datatoc_gpu_shader_image_frag_glsl[]
char datatoc_gpu_shader_text_vert_glsl[]
char datatoc_gpu_shader_2D_widget_base_frag_glsl[]
static const GPUShaderStages builtin_shader_stages[GPU_SHADER_BUILTIN_LEN]
char datatoc_gpu_shader_2D_edituvs_points_vert_glsl[]
char datatoc_gpu_shader_3D_polyline_geom_glsl[]
char datatoc_gpu_shader_2D_edituvs_faces_vert_glsl[]
char datatoc_gpu_shader_2D_smooth_color_frag_glsl[]
char datatoc_gpu_shader_3D_image_vert_glsl[]
char datatoc_gpu_shader_2D_edituvs_facedots_vert_glsl[]
char datatoc_gpu_shader_3D_vert_glsl[]
char datatoc_gpu_shader_2D_smooth_color_vert_glsl[]
char datatoc_gpu_shader_flat_color_frag_glsl[]
char datatoc_gpu_shader_image_overlays_stereo_merge_frag_glsl[]
char datatoc_gpu_shader_2D_line_dashed_uniform_color_vert_glsl[]
char datatoc_gpu_shader_3D_passthrough_vert_glsl[]
char datatoc_gpu_shader_checker_frag_glsl[]
char datatoc_gpu_shader_2D_point_varying_size_varying_color_vert_glsl[]
char datatoc_gpu_shader_2D_vert_glsl[]
char datatoc_gpu_shader_3D_polyline_frag_glsl[]
void KERNEL_FUNCTION_FULL_NAME() shader(KernelGlobals *kg, uint4 *input, float4 *output, int type, int filter, int i, int offset, int sample)
const char * lib
Definition: GPU_shader.h:398