From 941f5ee6ecc06b9cc7b367353980d076e8e15126 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Wed, 12 Jun 2024 09:49:48 +0800 Subject: [PATCH] fixed comment and layout comment. --- src/SceneGraph/MaterialRenderList.cpp | 2 +- src/SceneGraph/Vulkan/VKPrimitiveData.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SceneGraph/MaterialRenderList.cpp b/src/SceneGraph/MaterialRenderList.cpp index 612e8a83..4d04c451 100644 --- a/src/SceneGraph/MaterialRenderList.cpp +++ b/src/SceneGraph/MaterialRenderList.cpp @@ -60,7 +60,7 @@ int Comparator::compare(const hgl::graph::RenderNode &ob if(off) { - off=prim_one->GetVertexOffset()-prim_two->GetVertexOffset(); //保存vertex offset小的在前面 + off=prim_one->GetVertexOffset()-prim_two->GetVertexOffset(); //保证vertex offset小的在前面 return off; } diff --git a/src/SceneGraph/Vulkan/VKPrimitiveData.h b/src/SceneGraph/Vulkan/VKPrimitiveData.h index b9f91c26..923dbbcf 100644 --- a/src/SceneGraph/Vulkan/VKPrimitiveData.h +++ b/src/SceneGraph/Vulkan/VKPrimitiveData.h @@ -46,7 +46,7 @@ public: virtual int32_t GetVertexOffset ()const=0; ///<取得顶点偏移(注意是顶点不是字节) virtual uint32_t GetFirstIndex ()const=0; ///<取得第一个索引 - virtual VertexDataManager * GetVDM()const=0; ///<取得顶点数据管理器 + virtual VertexDataManager * GetVDM()const=0; ///<取得顶点数据管理器 public: