From 019eb0377c251931cc3fd698413e2fd3c71f02e9 Mon Sep 17 00:00:00 2001 From: assiduous Date: Mon, 23 Oct 2023 10:55:47 -0700 Subject: [PATCH] Hydrogent: minor updates --- Hydrogent/interface/HnRenderDelegate.hpp | 3 +-- Hydrogent/interface/Tasks/HnTaskManager.hpp | 2 +- Hydrogent/src/HnRenderDelegate.cpp | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Hydrogent/interface/HnRenderDelegate.hpp b/Hydrogent/interface/HnRenderDelegate.hpp index b28bf265..d0f8ffe9 100644 --- a/Hydrogent/interface/HnRenderDelegate.hpp +++ b/Hydrogent/interface/HnRenderDelegate.hpp @@ -36,14 +36,13 @@ #include "../../../DiligentCore/Graphics/GraphicsEngine/interface/RenderDevice.h" #include "../../../DiligentCore/Graphics/GraphicsTools/interface/RenderStateCache.h" #include "../../../DiligentCore/Common/interface/RefCntAutoPtr.hpp" +#include "../../PBR/interface/USD_Renderer.hpp" #include "HnTextureRegistry.hpp" namespace Diligent { -class USD_Renderer; - namespace USD { diff --git a/Hydrogent/interface/Tasks/HnTaskManager.hpp b/Hydrogent/interface/Tasks/HnTaskManager.hpp index bad982ab..ab2874de 100644 --- a/Hydrogent/interface/Tasks/HnTaskManager.hpp +++ b/Hydrogent/interface/Tasks/HnTaskManager.hpp @@ -245,7 +245,7 @@ template bool HnTaskManager::SetTaskParams(const pxr::SdfPath& TaskId, TaskParamsType&& Params) { - TaskParamsType OldParams = m_ParamsDelegate.GetParameter::type>(TaskId, pxr::HdTokens->params); + auto OldParams = m_ParamsDelegate.GetParameter::type>(TaskId, pxr::HdTokens->params); if (OldParams == Params) return false; diff --git a/Hydrogent/src/HnRenderDelegate.cpp b/Hydrogent/src/HnRenderDelegate.cpp index 00a1ef44..928aadf8 100644 --- a/Hydrogent/src/HnRenderDelegate.cpp +++ b/Hydrogent/src/HnRenderDelegate.cpp @@ -29,7 +29,6 @@ #include "HnMaterial.hpp" #include "HnRenderPass.hpp" #include "DebugUtilities.hpp" -#include "USD_Renderer.hpp" #include "HnRenderBuffer.hpp" #include "pxr/imaging/hd/material.h"