Shared CPU groom container (UE UGroomAsset analogue).
更多...
#include <GroomAsset.h>
Public 成员函数 | |
| Result< void > | addGroup (GroomGroup group) |
Append a group; fails when name is empty or groupId collides. @ownership group is moved into the asset on success. | |
| size_t | groupCount () const |
| const GroomGroup * | groupAt (size_t index) const |
| const GroomGroup * | findGroupById (uint32_t groupId) const |
| void | clear () |
| Result< void > | validate () const |
| Validate every group strands buffer and LOD table. | |
详细描述
Shared CPU groom container (UE UGroomAsset analogue).
Phase 2 stores strands plus LOD tables / cluster cull. Geometric Cards meshes are owned by graphics/HairCards (separate PR); Meshes later.
@thread Affine to the caller; not synchronized. @ownership Instance may copy groups on setAsset; asset remains caller-owned.
在文件 GroomAsset.h 第 52 行定义.
成员函数说明
◆ addGroup()
| Result< void > eve::graphics::hair::GroomAsset::addGroup | ( | GroomGroup | group | ) |
Append a group; fails when name is empty or groupId collides. @ownership group is moved into the asset on success.
在文件 GroomAsset.cpp 第 9 行定义.
引用了 eve::AlreadyExists, eve::Diagnostic::error(), eve::Result< T >::failure(), group, eve::InvalidArgument, lod, eve::graphics::hair::GroomLod::screenSize, eve::graphics::hair::Strands , 以及 eve::Result< T >::success().
◆ clear()
| void eve::graphics::hair::GroomAsset::clear | ( | ) |
在文件 GroomAsset.cpp 第 52 行定义.
◆ findGroupById()
| const GroomGroup * eve::graphics::hair::GroomAsset::findGroupById | ( | uint32_t | groupId | ) | const |
在文件 GroomAsset.cpp 第 45 行定义.
引用了 g.
◆ groupAt()
| const GroomGroup * eve::graphics::hair::GroomAsset::groupAt | ( | size_t | index | ) | const |
◆ groupCount()
|
inline |
在文件 GroomAsset.h 第 60 行定义.
被这些函数引用 eve::graphics::hair::GroomInstance::disableGuideSimulation(), eve::graphics::hair::GroomInstance::enableGuideSimulation(), eve::graphics::hair::GroomInstance::getCurveCount(), eve::graphics::hair::GroomInstance::getGroupCount(), eve::graphics::hair::GroomInstance::getPointCount(), eve::graphics::hair::GroomInstance::getVisibleCurveCount(), eve::graphics::hair::GroomInstance::rebuild(), eve::graphics::hair::GroomInstance::update() , 以及 eve::graphics::hair::GroomInstance::updateVisibility().
◆ validate()
| Result< void > eve::graphics::hair::GroomAsset::validate | ( | ) | const |
Validate every group strands buffer and LOD table.
在文件 GroomAsset.cpp 第 54 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::InvariantViolation, ok , 以及 eve::Result< T >::success().
该类的文档由以下文件生成:
- src/modules/graphics/hair/GroomAsset.h
- src/modules/graphics/hair/GroomAsset.cpp