载入中...
搜索中...
未找到
MeshDeformationCompute.h
浏览该文件的文档.
11enum class MeshDeformationComputeOperation : std::uint8_t { Inflate, Dent, Flatten, Directional, Smooth, Impact };
45 [[nodiscard]] virtual Result<std::vector<float>> deform(MeshDeformationComputeRequest request) = 0;
Move-only, checked operation results for the common layer.
Optional synchronous device-thread service for mesh sculpt and damage compute.
Definition MeshDeformationCompute.h:39
virtual ~IMeshDeformationCompute()=default
Releases IMeshDeformationCompute resources.
static constexpr const char * capabilityName
Definition MeshDeformationCompute.h:41
virtual Result< std::vector< float > > deform(MeshDeformationComputeRequest request)=0
Execute one request and return tightly packed xyz positions.
MeshDeformationComputeOperation
Operation executed by an optional mesh-deformation compute provider.
Definition MeshDeformationCompute.h:11
@ Directional
Owning, backend-neutral input for one synchronous GPU mesh deformation.
Definition MeshDeformationCompute.h:19
std::vector< float > targets
Definition MeshDeformationCompute.h:24
std::vector< float > positions
Definition MeshDeformationCompute.h:21
std::vector< float > normals
Definition MeshDeformationCompute.h:22
float directionX
Definition MeshDeformationCompute.h:29
MeshDeformationComputeOperation operation
Definition MeshDeformationCompute.h:20
std::vector< float > baseline
Definition MeshDeformationCompute.h:23
float directionZ
Definition MeshDeformationCompute.h:29
float directionY
Definition MeshDeformationCompute.h:29
float maxDisplacement
Definition MeshDeformationCompute.h:30