cmake: find OSL
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ protected:
|
||||
|
||||
virtual void DecompileInternal() override;
|
||||
|
||||
virtual void ParamsChangedEvent() override;
|
||||
//virtual void ParamsChangedEvent() override;
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user