载入中...
搜索中...
未找到
SimulationBackend.h 文件参考

Backend-neutral, observable fixed-step contract for physics domains. 更多...

#include "common/Export.h"
#include "common/Result.h"
#include "common/Time.h"
#include <cstdint>
#include <memory>
#include <ostream>
#include <string_view>

浏览源代码.

类

struct  eve::physics::SimulationSettings
 Validated solver policy for one simulation step. 更多...
 
struct  eve::physics::SimulationObservation
 Observable backend progress shared by CPU and accelerator providers. 更多...
 
class  eve::physics::ISimulationBackend
 Minimal observable contract for physics simulation providers. 更多...
 
class  eve::physics::IAcceleratorBackendProvider
 Optional provider that creates an accelerator backend for domain state. 更多...
 
class  eve::physics::AcceleratorBackendProviderRegistration
 Move-only lifetime token for one independently registered accelerator provider. 更多...
 
struct  eve::physics::SimulationBackendSelection
 Result of choosing an optional accelerator or CPU alternate path. 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::physics
 Optional physics backend for vehicle mobility and body attach.
 
namespace  eve::physics::detail
 

类型定义

using eve::physics::SimulationStep = eve::SimulationStep
 Compatibility alias for the common injected simulation step.
 
using eve::physics::SimulationStepCallback = void(*)(void *context, const eve::SimulationStep &step, const SimulationSettings &settings) noexcept
 Callback used by a domain-owned CPU or test backend adapter.
 

枚举

enum class  eve::physics::SimulationBackendKind { eve::physics::Cpu , eve::physics::Gpu , eve::physics::MockAccelerator }
 Kind of implementation that owns a simulation step. 更多...
 
enum class  eve::physics::SimulationBackendDomain {
  eve::physics::World2D , eve::physics::World3D , eve::physics::Cloth2D , eve::physics::Cloth3D ,
  eve::physics::Rope3D , eve::physics::SoftBody3D , eve::physics::SurfaceFluid
}
 Domain state consumed by an accelerator provider. 更多...
 
enum class  eve::physics::SimulationDeterminism { eve::physics::BitExact , eve::physics::ToleranceBounded , eve::physics::ExplicitlyNondeterministic }
 Determinism guarantee made by a simulation backend. 更多...
 

函数

constexpr std::string_view eve::physics::simulationBackendDomainName (SimulationBackendDomain domain) noexcept
 Returns the stable diagnostic spelling for an accelerated simulation domain.
 
constexpr std::string_view eve::physics::simulationBackendKindName (SimulationBackendKind kind) noexcept
 Returns the stable backend-kind spelling.
 
constexpr std::string_view eve::physics::simulationDeterminismName (SimulationDeterminism determinism) noexcept
 Returns the stable determinism-contract spelling.
 
std::ostream & eve::physics::operator<< (std::ostream &stream, SimulationBackendKind kind)
 Writes a backend kind for diagnostics.
 
std::ostream & eve::physics::operator<< (std::ostream &stream, SimulationDeterminism determinism)
 Writes a determinism contract for diagnostics.
 

详细描述

Backend-neutral, observable fixed-step contract for physics domains.

This header is part of the physics domain boundary. It intentionally does not include graphics, gpgpu, or a renderer-facing type. Accelerator providers enter through the capability interface declared here and may be absent.

在文件 SimulationBackend.h 中定义.