GPU: Update shader builder stubs.

Fixes workflow when using WITH_GPU_SHADER_BUILDER=On.
This commit is contained in:
Jeroen Bakker 2022-07-11 13:36:29 +02:00
parent 275419f6fd
commit 6ca5ac2084
1 changed files with 64 additions and 0 deletions

View File

@ -12,6 +12,7 @@
#include "IMB_imbuf.h"
#include "IMB_imbuf_types.h"
#include "BKE_attribute.h"
#include "BKE_customdata.h"
#include "BKE_global.h"
#include "BKE_material.h"
@ -100,6 +101,38 @@ void UI_GetThemeColorShadeAlpha4ubv(int UNUSED(colorid),
/** \} */
/* -------------------------------------------------------------------- */
/** \name Stubs of BKE_attribute.h
* \{ */
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))
{
}
struct CustomDataLayer *BKE_id_attributes_active_color_get(const struct ID *UNUSED(id))
{
return nullptr;
}
struct CustomDataLayer *BKE_id_attributes_render_color_get(const struct ID *UNUSED(id))
{
return nullptr;
}
eAttrDomain BKE_id_attribute_domain(const struct ID *UNUSED(id),
const struct CustomDataLayer *UNUSED(layer))
{
return ATTR_DOMAIN_AUTO;
}
/** \} */
/* -------------------------------------------------------------------- */
/** \name Stubs of BKE_paint.h
* \{ */
@ -170,6 +203,28 @@ int CustomData_get_offset(const struct CustomData *UNUSED(data), int UNUSED(type
return 0;
}
int CustomData_get_named_layer_index(const struct CustomData *UNUSED(data),
int UNUSED(type),
const char *UNUSED(name))
{
return -1;
}
int CustomData_get_active_layer_index(const struct CustomData *UNUSED(data), int UNUSED(type))
{
return -1;
}
int CustomData_get_render_layer_index(const struct CustomData *UNUSED(data), int UNUSED(type))
{
return -1;
}
bool CustomData_has_layer(const struct CustomData *UNUSED(data), int UNUSED(type))
{
return false;
}
/** \} */
/* -------------------------------------------------------------------- */
@ -237,5 +292,14 @@ void DRW_deferred_shader_remove(struct GPUMaterial *UNUSED(mat))
BLI_assert_unreachable();
}
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))
{
}
/** \} */
}