Updated opalgobase related to logging
This commit is contained in:
parent
2a45f5f6af
commit
499e55f5ea
1 changed files with 4 additions and 1 deletions
|
|
@ -137,9 +137,11 @@ OpAlgoBase::postEval()
|
||||||
std::vector<char>
|
std::vector<char>
|
||||||
OpAlgoBase::fetchSpirvBinaryData()
|
OpAlgoBase::fetchSpirvBinaryData()
|
||||||
{
|
{
|
||||||
SPDLOG_WARN("Kompute OpAlgoBase Running shaders directly from spirv file");
|
SPDLOG_DEBUG("Kompute OpAlgoBase Running fetchSpirvBinaryData");
|
||||||
|
|
||||||
if (this->mShaderFilePath.size()) {
|
if (this->mShaderFilePath.size()) {
|
||||||
|
SPDLOG_DEBUG("Kompute OpAlgoBase Reading data from file path");
|
||||||
|
|
||||||
std::ifstream fileStream(this->mShaderFilePath,
|
std::ifstream fileStream(this->mShaderFilePath,
|
||||||
std::ios::binary | std::ios::in |
|
std::ios::binary | std::ios::in |
|
||||||
std::ios::ate);
|
std::ios::ate);
|
||||||
|
|
@ -159,6 +161,7 @@ OpAlgoBase::fetchSpirvBinaryData()
|
||||||
|
|
||||||
return std::vector<char>(shaderDataRaw, shaderDataRaw + shaderFileSize);
|
return std::vector<char>(shaderDataRaw, shaderDataRaw + shaderFileSize);
|
||||||
} else if (this->mShaderDataRaw.size()) {
|
} else if (this->mShaderDataRaw.size()) {
|
||||||
|
SPDLOG_DEBUG("Kompute OpAlgoBase Reading data from data provided");
|
||||||
return this->mShaderDataRaw;
|
return this->mShaderDataRaw;
|
||||||
} else {
|
} else {
|
||||||
throw std::runtime_error(
|
throw std::runtime_error(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue