@@ -795,7 +795,7 @@ void HnRenderDelegate::CommitResources(pxr::HdChangeTracker* tracker)
795795 BindPrimitiveAttribsBuffer,
796796 BindMaterialAttribsBuffer,
797797 ShadowSRV);
798- if (auto * pVar = SRB->GetVariableByName (SHADER_TYPE_VERTEX, " cbFrameAttribs" ))
798+ if (IShaderResourceVariable * pVar = SRB->GetVariableByName (SHADER_TYPE_VERTEX, " cbFrameAttribs" ))
799799 {
800800 // m_FrameAttribsCB has space for the main pass and all shadow passes.
801801 pVar->SetBufferRange (m_FrameAttribsCB, 0 , BufferRange);
@@ -863,7 +863,7 @@ void HnRenderDelegate::CommitResources(pxr::HdChangeTracker* tracker)
863863
864864 HnMaterial::BeginResourceUpdate (*this );
865865 bool AllMaterialsUpdated = true ;
866- for (auto * pMat : m_Materials)
866+ for (HnMaterial * pMat : m_Materials)
867867 {
868868 if (!pMat->UpdateSRB (*this ))
869869 AllMaterialsUpdated = false ;
@@ -880,13 +880,13 @@ void HnRenderDelegate::CommitResources(pxr::HdChangeTracker* tracker)
880880 }
881881
882882 {
883- const auto MeshVersion =
883+ const uint32_t MeshVersion =
884884 m_RenderParam->GetAttribVersion (HnRenderParam::GlobalAttrib::MeshGeometry) +
885885 HnMesh::GetCacheResourceVersion (*this );
886886 if (m_MeshResourcesVersion != MeshVersion)
887887 {
888888 std::lock_guard<std::mutex> Guard{m_MeshesMtx};
889- for (auto * pMesh : m_Meshes)
889+ for (HnMesh * pMesh : m_Meshes)
890890 {
891891 pMesh->CommitGPUResources (*this );
892892 }
@@ -895,7 +895,7 @@ void HnRenderDelegate::CommitResources(pxr::HdChangeTracker* tracker)
895895 }
896896
897897 {
898- const auto LightResourcesVersion = m_RenderParam->GetAttribVersion (HnRenderParam::GlobalAttrib::LightResources);
898+ const uint32_t LightResourcesVersion = m_RenderParam->GetAttribVersion (HnRenderParam::GlobalAttrib::LightResources);
899899 if (m_LightResourcesVersion != LightResourcesVersion)
900900 {
901901 std::lock_guard<std::mutex> Guard{m_LightsMtx};
0 commit comments