Blender  V3.3
gpu_shader_builder_stubs.cc
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2021 Blender Foundation. All rights reserved. */
3 
10 #include "BLI_utildefines.h"
11 
12 #include "IMB_imbuf.h"
13 #include "IMB_imbuf_types.h"
14 
15 #include "BKE_attribute.h"
16 #include "BKE_customdata.h"
17 #include "BKE_global.h"
18 #include "BKE_material.h"
19 #include "BKE_mesh.h"
20 #include "BKE_node.h"
21 #include "BKE_paint.h"
22 #include "BKE_pbvh.h"
23 #include "BKE_subdiv_ccg.h"
24 
25 #include "DNA_userdef_types.h"
26 
27 #include "NOD_shader.h"
28 
29 #include "DRW_engine.h"
30 
31 #include "bmesh.h"
32 
33 #include "UI_resources.h"
34 
35 extern "C" {
36 
39 
40 /* -------------------------------------------------------------------- */
45 {
47 }
48 
51 /* -------------------------------------------------------------------- */
55 void UI_GetThemeColor4fv(int UNUSED(colorid), float UNUSED(col[4]))
56 {
58 }
59 
60 void UI_GetThemeColor3fv(int UNUSED(colorid), float UNUSED(col[3]))
61 {
63 }
64 
65 void UI_GetThemeColorShade4fv(int UNUSED(colorid), int UNUSED(offset), float UNUSED(col[4]))
66 {
68 }
69 
71  int UNUSED(coloffset),
72  int UNUSED(alphaoffset),
73  float UNUSED(col[4]))
74 {
76 }
78  int UNUSED(colorid2),
79  float UNUSED(fac),
80  int UNUSED(offset),
81  float UNUSED(col[4]))
82 {
84 }
85 
86 void UI_GetThemeColorBlend3ubv(int UNUSED(colorid1),
87  int UNUSED(colorid2),
88  float UNUSED(fac),
89  unsigned char UNUSED(col[3]))
90 {
92 }
93 
95  int UNUSED(coloffset),
96  int UNUSED(alphaoffset),
97  unsigned char UNUSED(col[4]))
98 {
100 }
101 
104 /* -------------------------------------------------------------------- */
109  const struct CustomData *UNUSED(vdata),
110  const struct CustomData *UNUSED(edata),
111  const struct CustomData *UNUSED(ldata),
112  const struct CustomData *UNUSED(pdata),
113  const struct CustomData *UNUSED(cdata),
114  struct ID *UNUSED(i_id))
115 {
116 }
117 
119 {
120  return nullptr;
121 }
122 
124 {
125  return nullptr;
126 }
127 
129  const struct CustomDataLayer *UNUSED(layer))
130 {
131  return ATTR_DOMAIN_AUTO;
132 }
133 
136 /* -------------------------------------------------------------------- */
139 bool paint_is_face_hidden(const struct MLoopTri *UNUSED(lt),
140  const struct MVert *UNUSED(mvert),
141  const struct MLoop *UNUSED(mloop))
142 {
144  return false;
145 }
146 
148  const int UNUSED(seed),
149  uchar UNUSED(r_color[4]))
150 {
152 }
153 
154 bool paint_is_grid_face_hidden(const unsigned int *UNUSED(grid_hidden),
155  int UNUSED(gridsize),
156  int UNUSED(x),
157  int UNUSED(y))
158 {
160  return false;
161 }
162 
165 /* -------------------------------------------------------------------- */
168 void BKE_mesh_calc_poly_normal(const struct MPoly *UNUSED(mpoly),
169  const struct MLoop *UNUSED(loopstart),
170  const struct MVert *UNUSED(mvarray),
171  float UNUSED(r_no[3]))
172 {
174 }
175 
177  const struct MLoopTri *UNUSED(looptri),
178  int UNUSED(r_edges[3]))
179 {
181 }
182 
185 /* -------------------------------------------------------------------- */
190 {
191  /* This function is reachable via GPU_exit. */
192 }
193 
196 /* -------------------------------------------------------------------- */
201 {
203  return 0;
204 }
205 
207  int UNUSED(type),
208  const char *UNUSED(name))
209 {
210  return -1;
211 }
212 
214 {
215  return -1;
216 }
217 
219 {
220  return -1;
221 }
222 
224 {
225  return false;
226 }
227 
230 /* -------------------------------------------------------------------- */
235  const int *UNUSED(grid_indices),
236  int UNUSED(totgrid),
237  int UNUSED(gridsize))
238 {
240  return 0;
241 }
242 
245 /* -------------------------------------------------------------------- */
249  const int UNUSED(grid_index))
250 {
252  return 0;
253 }
254 
257 /* -------------------------------------------------------------------- */
260 void ntreeGPUMaterialNodes(struct bNodeTree *UNUSED(localtree), struct GPUMaterial *UNUSED(mat))
261 {
263 }
264 
266 {
268  return nullptr;
269 }
270 
272 {
274 }
275 
278 /* -------------------------------------------------------------------- */
282 {
284 }
287 /* -------------------------------------------------------------------- */
291 {
293 }
294 
296  const char *UNUSED(base_name),
297  const struct CustomData *UNUSED(data),
298  const struct CustomDataLayer *UNUSED(cl),
299  bool UNUSED(is_active_render),
300  bool UNUSED(is_active_layer))
301 {
302 }
303 
305 }
Generic geometry attributes built on CustomData.
eAttrDomain
Definition: BKE_attribute.h:25
@ ATTR_DOMAIN_AUTO
Definition: BKE_attribute.h:26
CustomData interface, see also DNA_customdata_types.h.
General operations, lookup, etc. for materials.
A BVH for high poly meshes.
#define BLI_assert_unreachable()
Definition: BLI_assert.h:93
unsigned int BLI_bitmap
Definition: BLI_bitmap.h:16
unsigned char uchar
Definition: BLI_sys_types.h:70
#define UNUSED(x)
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
Contains defines and structs used throughout the imbuf module.
static unsigned long seed
Definition: btSoftBody.h:39
bNodeTree * ntree
uint col
int BKE_subdiv_ccg_grid_to_face_index(const SubdivCCG *UNUSED(subdiv_ccg), const int UNUSED(grid_index))
struct CustomDataLayer * BKE_id_attributes_active_color_get(const struct ID *UNUSED(id))
bool paint_is_grid_face_hidden(const unsigned int *UNUSED(grid_hidden), int UNUSED(gridsize), int UNUSED(x), int UNUSED(y))
void UI_GetThemeColorShadeAlpha4fv(int UNUSED(colorid), int UNUSED(coloffset), int UNUSED(alphaoffset), float UNUSED(col[4]))
void UI_GetThemeColorShade4fv(int UNUSED(colorid), int UNUSED(offset), float UNUSED(col[4]))
int CustomData_get_active_layer_index(const struct CustomData *UNUSED(data), int UNUSED(type))
void DRW_deferred_shader_remove(struct GPUMaterial *UNUSED(mat))
void UI_GetThemeColor4fv(int UNUSED(colorid), float UNUSED(col[4]))
int CustomData_get_render_layer_index(const struct CustomData *UNUSED(data), int UNUSED(type))
void BKE_paint_face_set_overlay_color_get(const int UNUSED(face_set), const int UNUSED(seed), uchar UNUSED(r_color[4]))
void UI_GetThemeColorShadeAlpha4ubv(int UNUSED(colorid), int UNUSED(coloffset), int UNUSED(alphaoffset), unsigned char UNUSED(col[4]))
void BKE_material_defaults_free_gpu()
int CustomData_get_named_layer_index(const struct CustomData *UNUSED(data), int UNUSED(type), const char *UNUSED(name))
UserDef U
bool paint_is_face_hidden(const struct MLoopTri *UNUSED(lt), const struct MVert *UNUSED(mvert), const struct MLoop *UNUSED(mloop))
void BKE_id_attribute_copy_domains_temp(short UNUSED(id_type), const struct CustomData *UNUSED(vdata), const struct CustomData *UNUSED(edata), const struct CustomData *UNUSED(ldata), const struct CustomData *UNUSED(pdata), const struct CustomData *UNUSED(cdata), struct ID *UNUSED(i_id))
void UI_GetThemeColorBlendShade4fv(int UNUSED(colorid1), int UNUSED(colorid2), float UNUSED(fac), int UNUSED(offset), float UNUSED(col[4]))
void BM_face_as_array_vert_tri(BMFace *UNUSED(f), BMVert *UNUSED(r_verts[3]))
void UI_GetThemeColor3fv(int UNUSED(colorid), float UNUSED(col[3]))
eAttrDomain BKE_id_attribute_domain(const struct ID *UNUSED(id), const struct CustomDataLayer *UNUSED(layer))
void UI_GetThemeColorBlend3ubv(int UNUSED(colorid1), int UNUSED(colorid2), float UNUSED(fac), unsigned char UNUSED(col[3]))
struct CustomDataLayer * BKE_id_attributes_render_color_get(const struct ID *UNUSED(id))
void IMB_freeImBuf(ImBuf *UNUSED(ibuf))
int BKE_pbvh_count_grid_quads(BLI_bitmap **UNUSED(grid_hidden), const int *UNUSED(grid_indices), int UNUSED(totgrid), int UNUSED(gridsize))
struct bNodeTree * ntreeLocalize(struct bNodeTree *UNUSED(ntree))
bool CustomData_has_layer(const struct CustomData *UNUSED(data), int UNUSED(type))
int CustomData_get_offset(const struct CustomData *UNUSED(data), int UNUSED(type))
void ntreeGPUMaterialNodes(struct bNodeTree *UNUSED(localtree), struct GPUMaterial *UNUSED(mat))
void BKE_mesh_calc_poly_normal(const struct MPoly *UNUSED(mpoly), const struct MLoop *UNUSED(loopstart), const struct MVert *UNUSED(mvarray), float UNUSED(r_no[3]))
void DRW_cdlayer_attr_aliases_add(struct GPUVertFormat *UNUSED(format), const char *UNUSED(base_name), const struct CustomData *UNUSED(data), const struct CustomDataLayer *UNUSED(cl), bool UNUSED(is_active_render), bool UNUSED(is_active_layer))
void BKE_mesh_looptri_get_real_edges(const struct Mesh *UNUSED(mesh), const struct MLoopTri *UNUSED(looptri), int UNUSED(r_edges[3]))
void ntreeFreeLocalTree(struct bNodeTree *UNUSED(ntree))
ccl_gpu_kernel_postfix ccl_global float int int int int float bool int offset
format
Definition: logImageCore.h:38
Definition: DNA_ID.h:368