Blender V4.3
gpu_shader_builder_stubs.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2021 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
11#include "BLI_utildefines.h"
12
13#include "IMB_imbuf.hh"
14#include "IMB_imbuf_types.hh"
15
16#include "BKE_appdir.hh"
17#include "BKE_attribute.hh"
18#include "BKE_customdata.hh"
19#include "BKE_global.hh"
20#include "BKE_material.h"
21#include "BKE_mesh.hh"
22#include "BKE_node.hh"
23#include "BKE_paint.hh"
24#include "BKE_pbvh_api.hh"
25#include "BKE_subdiv_ccg.hh"
26
27#include "DNA_userdef_types.h"
28
29#include "NOD_shader.h"
30
31#include "DRW_engine.hh"
32
33#include "bmesh.hh"
34
35#include "UI_resources.hh"
36
39
40char build_hash[16] = {'\0'};
41
42/* -------------------------------------------------------------------- */
46void IMB_freeImBuf(ImBuf * /*ibuf*/)
47{
49}
50
51struct ImBuf *IMB_allocImBuf(unsigned int /*x*/,
52 unsigned int /*y*/,
53 unsigned char /*planes*/,
54 unsigned int /*flags*/)
55{
57 return nullptr;
58}
59
62/* -------------------------------------------------------------------- */
66bool BKE_appdir_folder_caches(char * /*path*/, size_t /*path_maxncpy*/)
67{
68 return false;
69}
70
73/* -------------------------------------------------------------------- */
77void UI_GetThemeColor4fv(int /*colorid*/, float[4] /*col*/)
78{
80}
81
82void UI_GetThemeColor3fv(int /*colorid*/, float[3] /*col*/)
83{
85}
86
87void UI_GetThemeColorShade4fv(int /*colorid*/, int /*offset*/, float[4] /*col*/)
88{
90}
91
92void UI_GetThemeColorShadeAlpha4fv(int /*colorid*/,
93 int /*coloffset*/,
94 int /*alphaoffset*/,
95 float[4] /*col*/)
96{
98}
100 int /*colorid1*/, int /*colorid2*/, float /*fac*/, int /*offset*/, float[4] /*col*/)
101{
103}
104
105void UI_GetThemeColorBlend3ubv(int /*colorid1*/, int /*colorid2*/, float /*fac*/, uchar[3] /*col*/)
106{
108}
109
111 int /*coloffset*/,
112 int /*alphaoffset*/,
113 uchar[4] /*col*/)
114{
116}
117
120/* -------------------------------------------------------------------- */
124void BKE_paint_face_set_overlay_color_get(const int /*face_set*/,
125 const int /*seed*/,
126 uchar[4] /*col*/)
127{
129}
130
133/* -------------------------------------------------------------------- */
139/* -------------------------------------------------------------------- */
144{
145 /* This function is reachable via GPU_exit. */
146}
147
150/* -------------------------------------------------------------------- */
154int CustomData_get_offset(const struct CustomData * /*data*/, eCustomDataType /*type*/)
155{
157 return 0;
158}
159
161{
162 return -1;
163}
164
166{
167 return -1;
168}
169
170bool CustomData_has_layer(const struct CustomData * /*data*/, eCustomDataType /*type*/)
171{
172 return false;
173}
174
177/* -------------------------------------------------------------------- */
180extern "C" void ntreeGPUMaterialNodes(struct bNodeTree * /*localtree*/,
181 struct GPUMaterial * /*mat*/)
182{
184}
185
186struct bNodeTree *blender::bke::node_tree_localize(struct bNodeTree * /*ntree*/,
187 ID * /*new_owner_id*/)
188{
190 return nullptr;
191}
192
194{
196}
197
200/* -------------------------------------------------------------------- */
203extern void DRW_deferred_shader_remove(struct GPUMaterial * /*mat*/)
204{
206}
207
210/* -------------------------------------------------------------------- */
213struct ImBuf *IMB_ibImageFromMemory(const unsigned char * /*mem*/,
214 size_t /*size*/,
215 int /*flags*/,
216 char /*colorspace*/[IM_MAX_SPACE],
217 const char * /*descr*/)
218{
220 return nullptr;
221}
222
223struct ImBuf *IMB_allocFromBuffer(const uint8_t * /*rect*/,
224 const float * /*rectf*/,
225 unsigned int /*w*/,
226 unsigned int /*h*/,
227 unsigned int /*channels*/)
228{
230 return nullptr;
231}
232
233bool IMB_saveiff(struct ImBuf * /*ibuf*/, const char * /*filepath*/, int /*flags*/)
234{
236 return false;
237}
238
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:97
unsigned char uchar
#define IM_MAX_SPACE
Definition IMB_imbuf.hh:49
Contains defines and structs used throughout the imbuf module.
void UI_GetThemeColorBlendShade4fv(int, int, float, int, float[4])
void BKE_paint_face_set_overlay_color_get(const int, const int, uchar[4])
struct ImBuf * IMB_ibImageFromMemory(const unsigned char *, size_t, int, char[IM_MAX_SPACE], const char *)
void UI_GetThemeColorShade4fv(int, int, float[4])
int CustomData_get_render_layer_index(const struct CustomData *, eCustomDataType)
void BKE_material_defaults_free_gpu()
bool BKE_appdir_folder_caches(char *, size_t)
struct ImBuf * IMB_allocImBuf(unsigned int, unsigned int, unsigned char, unsigned int)
bool CustomData_has_layer(const struct CustomData *, eCustomDataType)
bool IMB_saveiff(struct ImBuf *, const char *, int)
int CustomData_get_active_layer_index(const struct CustomData *, eCustomDataType)
void UI_GetThemeColor4fv(int, float[4])
void UI_GetThemeColorShadeAlpha4ubv(int, int, int, uchar[4])
void UI_GetThemeColor3fv(int, float[3])
void UI_GetThemeColorShadeAlpha4fv(int, int, int, float[4])
struct ImBuf * IMB_allocFromBuffer(const uint8_t *, const float *, unsigned int, unsigned int, unsigned int)
int CustomData_get_offset(const struct CustomData *, eCustomDataType)
char build_hash[16]
void IMB_freeImBuf(ImBuf *)
void UI_GetThemeColorBlend3ubv(int, int, float, uchar[3])
void node_tree_free_local_tree(bNodeTree *ntree)
Definition node.cc:3639
bNodeTree * node_tree_localize(bNodeTree *ntree, ID *new_owner_id)
Definition node.cc:3750
unsigned char uint8_t
Definition stdint.h:78
Definition DNA_ID.h:413
void * DRW_deferred_shader_remove
Definition stubs.c:39
void * ntreeGPUMaterialNodes
Definition stubs.c:42