Skip to content
Draft
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pxr/imaging/plugin/hdRpr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ pxr_plugin(hdRpr
PRIVATE_HEADERS
baseRprim.h
api.h
resourceWatcher.h

RESOURCE_FILES
plugInfo.json
Expand All @@ -163,6 +164,7 @@ pxr_plugin(hdRpr
${CMAKE_CURRENT_BINARY_DIR}/config.cpp
ndrDiscoveryPlugin.cpp
ndrParserPlugin.cpp
resourceWatcher.cpp
)

if(RPR_EXR_EXPORT_ENABLED)
Expand Down
6 changes: 6 additions & 0 deletions pxr/imaging/plugin/hdRpr/renderDelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ limitations under the License.
#include <sstream>
#include <cstdio>

#include "resourceWatcher.h"

PXR_NAMESPACE_OPEN_SCOPE

static HdRprApi* g_rprApi = nullptr;
Expand Down Expand Up @@ -186,9 +188,11 @@ HdRprDelegate::HdRprDelegate(HdRenderSettingsMap const& renderSettings) {
}

m_lastCreatedInstance = this;
InitWatcher();
}

HdRprDelegate::~HdRprDelegate() {
NotifyRenderFinished();
g_rprApi = nullptr;
m_lastCreatedInstance = nullptr;
}
Expand Down Expand Up @@ -386,11 +390,13 @@ bool HdRprDelegate::IsPauseSupported() const {
}

bool HdRprDelegate::Pause() {
NotifyRenderFinished();
m_renderThread.PauseRender();
return true;
}

bool HdRprDelegate::Resume() {
NotifyRenderStarted();
m_renderThread.ResumeRender();
return true;
}
Expand Down
Loading