载入中...
搜索中...
未找到
VegetationPreset.h
浏览该文件的文档.
148[[nodiscard]] EVENGINE_API_PLATFORM Result<VegetationConversionCandidate> decodeUnityVegetationConversionCandidate(
149 std::span<const std::uint8_t> yaml, std::string sourcePath, std::uint64_t maximumBytes = 16ull * 1024ull * 1024ull);
160[[nodiscard]] EVENGINE_API_PLATFORM Result<std::vector<std::uint8_t>> encodeUnityVegetationConversionMaterial(
161 const VegetationConversionCandidate& candidate, std::uint64_t maximumBytes = 16ull * 1024ull * 1024ull);
174 const VegetationConversionCandidate& candidate, std::string shaderName, std::string materialName,
187[[nodiscard]] EVENGINE_API_PLATFORM Result<std::vector<VegetationPresetCommand>> evaluateVegetationPreset(
188 const std::map<std::string, Value>& definitions, std::string_view root, const VegetationPresetContext& context);
209[[nodiscard]] EVENGINE_API_PLATFORM Result<std::map<std::string, VegetationPresetImage>> executeVegetationTexturePacks(
210 const VegetationConversionCandidate& candidate, const std::map<std::string, VegetationPresetImage>& sources,
214[[nodiscard]] EVENGINE_API_PLATFORM Result<std::map<std::string, VegetationPresetImage>> executeVegetationTexturePacks(
215 const VegetationConversionCandidate& candidate, const std::map<std::string, VegetationPresetImage>& sources,
227 const VegetationConversionCandidate& candidate, asset::CanonicalMeshData source, float variationSeed = 1.f);
246[[nodiscard]] EVENGINE_API_PLATFORM Result<VegetationConversionResult> executeVegetationConversion(
248 std::optional<asset::CanonicalMeshData> mesh, const std::map<std::string, VegetationPresetImage>& textures,
258[[nodiscard]] EVENGINE_API_PLATFORM Result<VegetationConversionResult> executeUnityVegetationConversion(
269[[nodiscard]] EVENGINE_API_PLATFORM Result<PreparedAssetImport> prepareUnityVegetationConversionImport(
278[[nodiscard]] EVENGINE_API_PLATFORM Result<PreparedAssetImport> prepareUnityVegetationConversionBatch(
Tool-side image and glTF importers producing canonical .eva candidates.
Move-only, checked operation results for the common layer.
Owning, renderer-independent dynamic values.
Definition AssetImporter.h:14
VegetationTextureOutputEncoding
Requested source encoding for converted texture publication.
Definition VegetationPreset.h:87
Result< PreparedAssetImport > prepareUnityVegetationConversionImport(const UnityVegetationAssetImportRequest &request)
Convert and prepare one material, its packed images, and optional mesh as a single EVA candidate.
Definition VegetationConversionImport.cpp:122
EVENGINE_API_PLATFORM Result< std::vector< std::uint8_t > > encodeUnityVegetationConversionMaterial(const VegetationConversionCandidate &candidate, std::uint64_t maximumBytes=16ull *1024ull *1024ull)
Encode an applied vegetation candidate as a detached Unity text Material for the canonical TVE import...
Definition VegetationPresetMaterial.cpp:46
VegetationTransformOutputMode
Transform policy selected for converted mesh publication.
Definition VegetationPreset.h:89
@ TransformToWorldSpace
Result< PreparedAssetImport > prepareUnityVegetationConversionBatch(const UnityVegetationBatchImportRequest &request)
Prepare several vegetation objects as one all-or-nothing EVA candidate.
Definition VegetationConversionImport.cpp:201
EVENGINE_API_PLATFORM Result< VegetationConversionCandidate > decodeUnityVegetationConversionCandidate(std::span< const std::uint8_t > yaml, std::string sourcePath, std::uint64_t maximumBytes=16ull *1024ull *1024ull)
Decode Unity text Material saved properties into an owning vegetation conversion baseline.
Definition VegetationPresetSource.cpp:33
EVENGINE_API_PLATFORM Result< VegetationConversionCandidate > applyVegetationPreset(VegetationConversionCandidate source, const std::vector< VegetationPresetCommand > &commands)
Type-check and atomically apply an evaluated TVE command sequence.
Definition VegetationPresetApply.cpp:187
VegetationMeshOutputMode
TVE mesh publication mode selected by OutputMeshes.
Definition VegetationPreset.h:83
EVENGINE_API_PLATFORM Result< VegetationConversionResult > executeUnityVegetationConversion(const UnityVegetationConversionRequest &request)
Decode a Unity Material, evaluate one TVE preset graph, and execute every output atomically.
Definition VegetationPresetConversion.cpp:210
EVENGINE_API_PLATFORM Result< asset::CanonicalMeshData > executeVegetationMeshRules(const VegetationConversionCandidate &candidate, asset::CanonicalMeshData source, float variationSeed=1.f)
Execute preset mask and coordinate rules into canonical TVE authoring streams.
Definition VegetationPresetMesh.cpp:482
EVENGINE_API_PLATFORM Result< std::map< std::string, VegetationPresetImage > > executeVegetationTexturePacks(const VegetationConversionCandidate &candidate, const std::map< std::string, VegetationPresetImage > &sources, std::uint64_t maximumPixels=16ull *1024ull *1024ull)
Execute all texture recipes against detached RGBA8 source images.
Definition VegetationPresetTexture.cpp:205
EVENGINE_API_PLATFORM Result< VegetationConversionResult > executeVegetationConversion(VegetationConversionCandidate source, const std::vector< VegetationPresetCommand > &commands, std::optional< asset::CanonicalMeshData > mesh, const std::map< std::string, VegetationPresetImage > &textures, float variationSeed=1.f, const std::optional< std::array< float, 16 > > &sourceToWorld={}, const std::optional< std::array< float, 9 > > &sourceDirectionToWorld={})
Apply commands and execute all available mesh and texture outputs as one transaction.
Definition VegetationPresetConversion.cpp:128
Result< std::vector< VegetationPresetCommand > > evaluateVegetationPreset(const std::map< std::string, Value > &definitions, std::string_view root, const VegetationPresetContext &context)
Decode, resolve and evaluate a library of canonical TVE preset definitions.
Definition VegetationPreset.cpp:176
EVENGINE_API_PLATFORM VegetationPresetContext makeVegetationPresetContext(const VegetationConversionCandidate &candidate, std::string shaderName, std::string materialName, std::string shaderPipeline, std::set< std::string > outputOptions={})
Project one conversion baseline into immutable preset predicate facts.
Definition VegetationPresetSource.cpp:142
VegetationMaterialOutputMode
TVE material publication mode selected by OutputMaterials.
Definition VegetationPreset.h:85
Owning CPU mesh snapshot; UV arrays are packed ST pairs indexed by source set number....
Definition CanonicalMesh.h:18
Parser and allocation budgets applied to untrusted importer inputs.
Definition AssetImporter.h:17
Common stable package metadata supplied by an import transaction.
Definition AssetImporter.h:33
Owning inputs for one atomically prepared Unity vegetation asset group.
Definition VegetationPreset.h:124
std::string outputKey
Definition VegetationPreset.h:128
std::map< std::string, std::vector< std::uint8_t > > sourceFiles
Definition VegetationPreset.h:129
std::string materialGuid
Definition VegetationPreset.h:127
UnityVegetationConversionRequest conversion
Definition VegetationPreset.h:126
ImportPackageIdentity package
Definition VegetationPreset.h:125
AssetImportLimits limits
Definition VegetationPreset.h:130
Owning ordered set of independently converted vegetation objects published as one package.
Definition VegetationPreset.h:134
std::vector< UnityVegetationAssetImportRequest > objects
Definition VegetationPreset.h:136
ImportPackageIdentity package
Definition VegetationPreset.h:135
AssetImportLimits limits
Definition VegetationPreset.h:137
Owning inputs for one complete Unity Material and TVE preset conversion transaction.
Definition VegetationPreset.h:106
std::string shaderPipeline
Definition VegetationPreset.h:111
std::map< std::string, Value > presetDefinitions
Definition VegetationPreset.h:113
float variationSeed
Definition VegetationPreset.h:119
std::string shaderName
Definition VegetationPreset.h:109
std::optional< asset::CanonicalMeshData > mesh
Definition VegetationPreset.h:115
std::string sourcePath
Definition VegetationPreset.h:108
std::uint64_t maximumMaterialBytes
Definition VegetationPreset.h:120
std::string rootPreset
Definition VegetationPreset.h:114
std::optional< std::array< float, 16 > > sourceToWorld
Definition VegetationPreset.h:117
std::string materialName
Definition VegetationPreset.h:110
std::set< std::string > outputOptions
Definition VegetationPreset.h:112
std::vector< std::uint8_t > materialYaml
Definition VegetationPreset.h:107
std::optional< std::array< float, 9 > > sourceDirectionToWorld
Definition VegetationPreset.h:118
std::map< std::string, VegetationPresetImage > textures
Definition VegetationPreset.h:116
Owning unpublished material, mesh and texture candidate mutated transactionally by preset commands.
Definition VegetationPreset.h:63
std::string materialShader
Definition VegetationPreset.h:72
std::map< std::string, std::array< double, 4 > > materialVectors
Definition VegetationPreset.h:65
std::vector< std::string > utilityModes
Definition VegetationPreset.h:79
bool materialInstancing
Definition VegetationPreset.h:74
std::map< std::string, std::vector< std::string > > meshRules
Definition VegetationPreset.h:75
std::vector< VegetationTexturePackRecipe > texturePacks
Definition VegetationPreset.h:76
std::set< std::string > firstValidTextureDestinations
Definition VegetationPreset.h:71
std::map< std::string, std::vector< std::string > > outputDirectives
Definition VegetationPreset.h:77
std::set< std::string > lockedMaterialProperties
Definition VegetationPreset.h:70
std::set< std::string > materialKeywords
Definition VegetationPreset.h:69
std::string materialLighting
Definition VegetationPreset.h:73
std::map< std::string, std::array< double, 4 > > materialColors
Definition VegetationPreset.h:66
std::map< std::string, double > materialFloats
Definition VegetationPreset.h:64
std::map< std::string, std::array< double, 4 > > materialTextureTransforms
Definition VegetationPreset.h:68
std::map< std::string, std::string > materialTextures
Definition VegetationPreset.h:67
std::map< std::string, std::string > shaderAliases
Definition VegetationPreset.h:78
Complete detached output of one vegetation preset conversion transaction.
Definition VegetationPreset.h:92
VegetationMaterialOutputMode materialOutput
Definition VegetationPreset.h:100
VegetationTransformOutputMode transformOutput
Definition VegetationPreset.h:102
std::map< std::string, VegetationPresetImage > textures
Definition VegetationPreset.h:95
std::optional< std::array< float, 3 > > meshBoundsMinimum
Definition VegetationPreset.h:96
VegetationMeshOutputMode meshOutput
Definition VegetationPreset.h:99
std::optional< asset::CanonicalMeshData > mesh
Definition VegetationPreset.h:94
bool meshCpuReadable
Definition VegetationPreset.h:98
VegetationConversionCandidate candidate
Definition VegetationPreset.h:93
std::optional< std::array< float, 3 > > meshBoundsMaximum
Definition VegetationPreset.h:97
VegetationTextureOutputEncoding textureOutput
Definition VegetationPreset.h:101
One evaluated TVE conversion command in source execution order.
Definition VegetationPreset.h:21
std::vector< std::string > arguments
Definition VegetationPreset.h:24
std::string domain
Definition VegetationPreset.h:22
std::string operation
Definition VegetationPreset.h:23
std::string sourcePath
Definition VegetationPreset.h:25
Immutable source facts used by TVE preset predicates.
Definition VegetationPreset.h:29
std::set< std::string > materialTextures
Definition VegetationPreset.h:36
std::string shaderName
Definition VegetationPreset.h:31
std::map< std::string, double > materialFloats
Definition VegetationPreset.h:34
std::set< std::string > outputOptions
Definition VegetationPreset.h:30
std::set< std::string > materialProperties
Definition VegetationPreset.h:35
std::string materialName
Definition VegetationPreset.h:32
std::string shaderPipeline
Definition VegetationPreset.h:33
std::set< std::string > materialKeywords
Definition VegetationPreset.h:37
Owning linear RGBA8 source or packed texture used by preset conversion.
Definition VegetationPreset.h:56
std::vector< std::uint8_t > pixels
Definition VegetationPreset.h:59
std::uint32_t height
Definition VegetationPreset.h:58
One channel instruction in a TVE packed-texture recipe.
Definition VegetationPreset.h:41
std::string sourceProperty
Definition VegetationPreset.h:43
std::string selector
Definition VegetationPreset.h:42
std::string action
Definition VegetationPreset.h:44
One ordered texture packing recipe produced by preset execution.
Definition VegetationPreset.h:48
std::string transformSpace
Definition VegetationPreset.h:51
std::string importType
Definition VegetationPreset.h:50
std::string targetProperty
Definition VegetationPreset.h:49
std::array< VegetationTextureChannelRecipe, 4 > channels
Definition VegetationPreset.h:52