载入中...
搜索中...
未找到
eve::graphics::SkyWispsAsset类 参考

Immutable owned sky mesh and textures, loaded from a pack or generated procedurally. 更多...

#include <SkyWispsAsset.h>

类

struct  Impl
 

Public 成员函数

const SkyWispsLayer & layer () const noexcept
 Borrow upload data until the last copy of this asset is destroyed.
 

静态 Public 成员函数

static Result< SkyWispsAsset > load (const std::string &manifestPath)
 Read and decode the complete asset before publishing owned data.
 
static Result< SkyWispsAsset > generate (uint32_t seed)
 Generate a complete independent sky using a named procedural-v1 seed.
 

详细描述

Immutable owned sky mesh and textures, loaded from a pack or generated procedurally.

Reads eve.sky-wisps/1 through /7 and eve.sky-mesh/1 through the existing VFS. Unknown fields, unsupported versions and malformed resources fail without publication. No GPU resources, callbacks or provider references are retained. @thread Load on the game thread with an initialized filesystem; immutable reads may be shared.

在文件 SkyWispsAsset.h 第 15 行定义.

成员函数说明

◆ generate()

Result< SkyWispsAsset > eve::graphics::SkyWispsAsset::generate ( uint32_t  seed)
static

Generate a complete independent sky using a named procedural-v1 seed.

参数
seedExplicit cloud/star/moon random stream seed; does not consume simulation RNG.
返回
Immutable owned candidate or structured failure; no filesystem/GPU state is touched.

Repeatable on one platform; floating-point mesh/noise may vary slightly across platforms. @thread Worker-safe, synchronous, no callbacks. Upload borrows remain valid for this asset lifetime. @cost Generates bounded mesh and mipmapped textures once; amortize over sky preparation, never per frame.

在文件 SkyProceduralAsset.cpp 第 64 行定义.

引用了 a, at, b, depth, elevation, eve::Diagnostic::error(), eve::Failed, eve::Result< T >::failure(), g, hash, eve::graphics::TextureSampler::linear(), mips, n, nx, nz, p, pixels, r, eve::graphics::R8, random, seed, size, eve::Result< T >::success(), t, terrain, u, v, valid, value, w, x, y , 以及 z.

被这些函数引用 eve::daynight::exposeSkyScriptBindings().

◆ layer()

const SkyWispsLayer & eve::graphics::SkyWispsAsset::layer ( ) const
noexcept

Borrow upload data until the last copy of this asset is destroyed.

在文件 SkyWispsAsset.cpp 第 70 行定义.

◆ load()

Result< SkyWispsAsset > eve::graphics::SkyWispsAsset::load ( const std::string &  manifestPath)
static

Read and decode the complete asset before publishing owned data.

参数
manifestPathVFS manifest path; resource paths resolve relative to it.
返回
Immutable candidate or structured failure, with no partially observable state. @cost File reads and mesh/texture decoding; amortize over sky preparation, never call per frame.

在文件 SkyWispsAsset.cpp 第 71 行定义.

引用了 begin, boolean, bytes, curve, d, descriptor, encoding, fields, hash, image, key, layout, material, mesh, n, name, number, pixels, size, source, text, v, vertices , 以及 w.

被这些函数引用 eve::daynight::exposeSkyScriptBindings().


该类的文档由以下文件生成: