GPU: Fix ShaderBuilder MSVC compilation #108820
|
@ -793,8 +793,6 @@ if(WITH_GPU_BUILDTIME_SHADER_BUILDER)
|
||||||
intern/gpu_shader_builder_stubs.cc
|
intern/gpu_shader_builder_stubs.cc
|
||||||
${shader_create_info_list_file}
|
${shader_create_info_list_file}
|
||||||
)
|
)
|
||||||
|
|
||||||
setup_platform_linker_flags(shader_builder)
|
|
||||||
target_link_libraries(shader_builder PUBLIC buildinfoobj)
|
target_link_libraries(shader_builder PUBLIC buildinfoobj)
|
||||||
else()
|
else()
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
|
@ -809,8 +807,9 @@ if(WITH_GPU_BUILDTIME_SHADER_BUILDER)
|
||||||
${shader_create_info_list_file}
|
${shader_create_info_list_file}
|
||||||
${MANIFEST}
|
${MANIFEST}
|
||||||
)
|
)
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
setup_platform_linker_flags(shader_builder)
|
||||||
|
|
||||||
target_link_libraries(shader_builder PUBLIC
|
target_link_libraries(shader_builder PUBLIC
|
||||||
bf_gpu
|
bf_gpu
|
||||||
bf_intern_clog
|
bf_intern_clog
|
||||||
|
|
|
@ -271,5 +271,36 @@ void DRW_cdlayer_attr_aliases_add(struct GPUVertFormat * /*format*/,
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** \} */
|
||||||
|
|
||||||
|
/* -------------------------------------------------------------------- */
|
||||||
|
/** \name Stubs of IMB_imbuf.h
|
||||||
|
* \{ */
|
||||||
|
struct ImBuf *IMB_ibImageFromMemory(const unsigned char * /*mem*/,
|
||||||
|
size_t /*size*/,
|
||||||
|
int /*flags*/,
|
||||||
|
char /*colorspace*/[IM_MAX_SPACE],
|
||||||
|
const char * /*descr*/)
|
||||||
|
{
|
||||||
|
BLI_assert_unreachable();
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
struct ImBuf *IMB_allocFromBuffer(const uint8_t * /*rect*/,
|
||||||
|
const float * /*rectf*/,
|
||||||
|
unsigned int /*w*/,
|
||||||
|
unsigned int /*h*/,
|
||||||
|
unsigned int /*channels*/)
|
||||||
|
{
|
||||||
|
BLI_assert_unreachable();
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool IMB_saveiff(struct ImBuf * /*ibuf*/, const char * /*filepath*/, int /*flags*/)
|
||||||
|
{
|
||||||
|
BLI_assert_unreachable();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/** \} */
|
/** \} */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue