cmake: find OSL

This commit is contained in:
itsmattkc
2020-02-08 00:14:13 +11:00
parent fd44c94fc8
commit 5e5be50959
7 changed files with 114 additions and 4 deletions
+3
View File
@@ -1,5 +1,6 @@
#include "oslbackend.h"
#include <OSL/oslexec.h>
#include <QEventLoop>
#include <QThread>
@@ -34,6 +35,8 @@ bool OSLBackend::InitInternal()
bool OSLBackend::CompileInternal()
{
//OSL::ShadingSystem;
return true;
}
+1 -1
View File
@@ -18,7 +18,7 @@ protected:
virtual void DecompileInternal() override;
virtual void ParamsChangedEvent() override;
//virtual void ParamsChangedEvent() override;
};
+9
View File
@@ -14,12 +14,21 @@ OSLWorker::OSLWorker(VideoRenderFrameCache *frame_cache, QObject *parent) :
void OSLWorker::FrameToValue(StreamPtr stream, FramePtr frame, NodeValueTable *table)
{
Q_UNUSED(stream)
Q_UNUSED(frame)
Q_UNUSED(table)
}
void OSLWorker::RunNodeAccelerated(const Node *node, const TimeRange &range, const NodeValueDatabase &input_params, NodeValueTable *output_params)
{
Q_UNUSED(node)
Q_UNUSED(range)
Q_UNUSED(input_params)
Q_UNUSED(output_params)
}
void OSLWorker::TextureToBuffer(const QVariant &tex_in, QByteArray &buffer)
{
Q_UNUSED(tex_in)
Q_UNUSED(buffer)
}
@@ -300,6 +300,7 @@ void VideoRenderBackend::ThreadCompletedFrame(NodeDependency path, qint64 job_ti
{
if (!only_signal_last_frame_requested_ || last_time_requested_ == path.in() || frame_cache_.TimeToHash(last_time_requested_) == hash) {
Q_UNUSED(job_time)
Q_UNUSED(value)
//EmitCachedFrameReady(path.in(), value, job_time);
}