载入中...
搜索中...
未找到
MeshDeformationCompute.h
浏览该文件的文档.
1#pragma once
2
3#include "common/Result.h"
4
5#include <cstdint>
6#include <vector>
7
8namespace eve {
9
12
21 std::vector<float> positions;
22 std::vector<float> normals;
23 std::vector<float> baseline;
24 std::vector<float> targets;
25 float centerX = 0.f, centerY = 0.f, centerZ = 0.f;
26 float radius = 1.f;
27 float strength = 0.f;
28 float falloff = 1.f;
29 float directionX = 0.f, directionY = 1.f, directionZ = 0.f;
30 float maxDisplacement = 1.f;
31};
32
40public:
41 static constexpr const char* capabilityName = "eve.mesh-deformation-compute.v1";
43 virtual ~IMeshDeformationCompute() = default;
46};
47
48} // namespace eve
const GltfImportRequest & request
Move-only, checked operation results for the common layer.
Optional synchronous device-thread service for mesh sculpt and damage compute.
virtual ~IMeshDeformationCompute()=default
Releases IMeshDeformationCompute resources.
static constexpr const char * capabilityName
virtual Result< std::vector< float > > deform(MeshDeformationComputeRequest request)=0
Execute one request and return tightly packed xyz positions.
Move-only operation result carrying either a value or Status.
Definition Result.h:155
Build metadata (engine git commit, build time, third-party version).
Definition Build.cpp:16
MeshDeformationComputeOperation
Operation executed by an optional mesh-deformation compute provider.
Owning, backend-neutral input for one synchronous GPU mesh deformation.
MeshDeformationComputeOperation operation