GPU: Replace std::cout by std::cerr for dependency errors
This allow seeing them during the build process
This commit is contained in:
@@ -910,7 +910,7 @@ BuiltinBits gpu_shader_dependency_get_builtins(const StringRefNull shader_source
|
||||
return shader::BuiltinBits::NONE;
|
||||
}
|
||||
if (g_sources->contains(shader_source_name) == false) {
|
||||
std::cout << "Error: Could not find \"" << shader_source_name
|
||||
std::cerr << "Error: Could not find \"" << shader_source_name
|
||||
<< "\" in the list of registered source.\n";
|
||||
BLI_assert(0);
|
||||
return shader::BuiltinBits::NONE;
|
||||
@@ -925,7 +925,7 @@ Vector<const char *> gpu_shader_dependency_get_resolved_source(
|
||||
Vector<const char *> result;
|
||||
GPUSource *src = g_sources->lookup_default(shader_source_name, nullptr);
|
||||
if (src == nullptr) {
|
||||
std::cout << "Error source not found : " << shader_source_name << std::endl;
|
||||
std::cerr << "Error source not found : " << shader_source_name << std::endl;
|
||||
}
|
||||
src->build(result);
|
||||
return result;
|
||||
@@ -935,7 +935,7 @@ StringRefNull gpu_shader_dependency_get_source(const StringRefNull shader_source
|
||||
{
|
||||
GPUSource *src = g_sources->lookup_default(shader_source_name, nullptr);
|
||||
if (src == nullptr) {
|
||||
std::cout << "Error source not found : " << shader_source_name << std::endl;
|
||||
std::cerr << "Error source not found : " << shader_source_name << std::endl;
|
||||
}
|
||||
return src->source;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user