载入中...
搜索中...
未找到
eve::asset_graphics::detail 命名空间参考

类

struct  CookedMaterial
 Validated material value; image references own identity, GPU bindings initially empty. 更多...
 

函数

Result< CookedMaterial > readCookedMaterial (const asset::EvpackResourceReader &reader, const AssetRef &ref, const asset::EvpackCapabilities &caps)
 Decode material schemas 5 through 9 without allocating graphics resources. Unknown additive fields are ignored; known fields are validated, with no coercion. @thread Reentrant; reader is borrowed synchronously, no callbacks or retained pointers.
 

函数说明

◆ readCookedMaterial()

EVENGINE_API_WORLD Result< CookedMaterial > eve::asset_graphics::detail::readCookedMaterial ( const asset::EvpackResourceReader &  reader,
const AssetRef &  ref,
const asset::EvpackCapabilities &  caps 
)

Decode material schemas 5 through 9 without allocating graphics resources. Unknown additive fields are ignored; known fields are validated, with no coercion. @thread Reentrant; reader is borrowed synchronously, no callbacks or retained pointers.

返回
Validated owning material or a diagnostic; no externally visible mutation.

在文件 CookedMaterial.cpp 第 50 行定义.

引用了 a, b, eve::graphics::Back, eve::graphics::VegetationSurface::backfaceNormalMode, blend, boolean, caps, color, eve::graphics::VegetationSurface::colorsCoverage, eve::graphics::VegetationSurface::colorsIntensity, eve::graphics::VegetationSurface::colorsMask, eve::graphics::VegetationSurface::colorsVariation, d, eve::asset::decodeRuntimeDefinition(), detail, eve::Diagnostic::error(), eve::Result< T >::failure(), fields, eve::graphics::Front, g, image, eve::InvalidArgument, eve::graphics::VegetationSurface::invertVertexOcclusion, eve::graphics::VegetationSurface::invertVertexOcclusionColors, key, m, mask, name, eve::graphics::None, number, object, eve::graphics::VegetationSurface::overlayCoverage, eve::graphics::VegetationSurface::overlayProjection, eve::graphics::VegetationSurface::overlayVariation, eve::AssetRef::parse(), payload, eve::asset::EvpackResourceReader::read(), s, eve::graphics::Same, sampler, string, eve::Result< T >::success(), eve::asset_graphics::detail::CookedMaterial::surface, t, eve::graphics::TangentXYZ, eve::TypeMismatch, eve::graphics::validatePbrSurface(), value, eve::graphics::VegetationAG, eve::graphics::VegetationRAG, eve::graphics::VegetationRG, eve::graphics::VegetationSurface::vertexOcclusionAlpha, eve::graphics::VegetationSurface::vertexOcclusionColor, eve::graphics::VegetationSurface::vertexOcclusionMaximum, eve::graphics::VegetationSurface::vertexOcclusionMinimum , 以及 eve::graphics::VegetationSurface::wetnessCoverage.

被这些函数引用 eve::asset_graphics::EvpackStaticPrefab::load().