载入中...
搜索中...
未找到
CanonicalMeshEncode.cpp 文件参考
#include <algorithm>
#include <bit>
#include <cmath>
#include <iomanip>
#include <limits>
#include <new>
#include <sstream>
#include "asset/CanonicalMesh.h"
#include "asset/CanonicalPcgCook.h"
#include "asset/CanonicalVolumeTextureCook.h"
#include "common/Value.h"

浏览源代码.

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::asset
 

函数

EVENGINE_API_FOUNDATION Result< std::vector< std::uint8_t > > eve::asset::encodeCanonicalMesh (const CanonicalMeshData &mesh, const CanonicalMeshLimits &limits={})
 Encode an owning snapshot to EVMESH v3, or v2 when no named attributes exist. Borrows input synchronously; worker-safe, reentrant, without callbacks or retained pointers.
 
Result< CookedCanonicalPcgGraph > eve::asset::cookCanonicalPcgGraph (std::span< const std::uint8_t > definition, std::uint32_t maximumRules, std::uint64_t maximumPlanBytes)
 Compile eve.pcg-graph/1 terrain scatter rules to a bounded PointGraph plan.
 
Result< CookedCanonicalVolumeTexture > eve::asset::cookCanonicalVolumeTextureRgba8 (std::span< const uint8_t > definition, std::span< const uint8_t > sourceR8, uint64_t maximumDecodedBytes)