13#if BLI_SUBPROCESS_SUPPORT
20constexpr size_t compilation_subprocess_shared_memory_size = 1024 * 1024 * 5;
22struct ShaderSourceHeader {
23 enum Type {
COMPUTE, GRAPHICS, GRAPHICS_WITH_GEOMETRY_STAGE };
28 char sources[compilation_subprocess_shared_memory_size -
sizeof(type)];
31static_assert(
sizeof(ShaderSourceHeader) == compilation_subprocess_shared_memory_size,
32 "Size must match the shared memory size");
34struct ShaderBinaryHeader {
41 uint8_t data[compilation_subprocess_shared_memory_size -
sizeof(
size) -
sizeof(format)];
44static_assert(
sizeof(ShaderBinaryHeader) == compilation_subprocess_shared_memory_size,
45 "Size must match the shared memory size");
47void GL_shader_cache_dir_clear_old();
49std::string GL_shader_cache_dir_get();
int size(const AssetLibraryReference *library_reference)
BMesh const char void * data
std::string format(const std::string &fmt, Args &&...args)