diff options
Diffstat (limited to 'src/clspv_helper.cc')
-rw-r--r-- | src/clspv_helper.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/clspv_helper.cc b/src/clspv_helper.cc index 59b8737..4be5bfa 100644 --- a/src/clspv_helper.cc +++ b/src/clspv_helper.cc @@ -258,9 +258,10 @@ Result Compile(Pipeline::ShaderInfo* shader_info, for (const auto& option : shader_info->GetCompileOptions()) { options += option + " "; } + std::string error_log; if (clspv::CompileFromSourceString(src_str, /* sampler map */ "", options, - generated_binary)) { - return Result("Clspv compile failed"); + generated_binary, &error_log)) { + return Result("Clspv compile error: " + error_log); } // Parse the reflection instructions. |