载入中...
搜索中...
未找到
CollapseAnimationCapture.cpp
浏览该文件的文档.
16 if (!std::isfinite(seconds) || (frames_.empty() ? seconds != 0 : seconds <= duration()) || count <= 0 ||
17 (!frames_.empty() && count != boneCount()) || (frames_.size() + 1) * static_cast<size_t>(count) > MaxSamples)
38 if (a.halfExtentX != b.halfExtentX || a.halfExtentY != b.halfExtentY || a.halfExtentZ != b.halfExtentZ ||
49 Diagnostic::error(DiagnosticCode::Failed, "collapse capture allocation failed", "collapseAnimation"));
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.cpp:21
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
Result< void > capture(const CollapseCaptureSource &source, float seconds)
Record a complete frame at strictly increasing seconds, starting at zero. @cost Linear in fragments p...
Definition CollapseAnimationCapture.cpp:11
Read-only source protocol for one atomic offline collapse sample. @ownership The caller owns the sour...
Definition CollapseCaptureSource.h:15
virtual ~CollapseCaptureSource()
Release the protocol object; does not transfer ownership to a recorder.
constexpr std::uint32_t MaxSamples
Definition CollapseAnimationInternal.h:7
@ Failed