Skip to main content

Crate oa

Crate oa 

Source
Expand description

oa - GPU-first architecture with explicit Vulkan

Experimental Rust port / successor prototype for OA.

The target API is organized as a language-like semantic surface:

  • Semantic value types are re-exported at the root.
  • Engine and, once admitted, Device and Event are runtime types.
  • Stateless operations live in matrix, image, audio, video, vision, render, ml, and crypto modules.

Foundational contracts live under core; common types are also re-exported from the crate root. Runtime machinery lives under runtime.

Re-exports§

pub use core::vlm;
pub use anim::AnimClip;
pub use anim::AnimCurve;
pub use anim::Joint;
pub use anim::Keyframe;
pub use anim::SkelPose;
pub use audio::Audio;
pub use audio::AudioCapture;
pub use audio::AudioChannelLayout;
pub use audio::AudioEncoder;
pub use audio::AudioPlayer;
pub use core::transform::Transform;
pub use core::BufferAccess;
pub use core::COMPACT_BANNER;
pub use core::Callback;
pub use core::CallbackSet;
pub use core::CheckpointConfig;
pub use core::Cli;
pub use core::Color;
pub use core::DType;
pub use core::Datetime;
pub use core::EnvFlag;
pub use core::Error;
pub use core::ErrorKind;
pub use core::F16;
pub use core::Filesystem;
pub use core::IteratorContext;
pub use core::LogConfig;
pub use core::LogMetrics;
pub use core::MappedFile;
pub use core::NumericMode;
pub use core::OpAttribute;
pub use core::OpAttributeKind;
pub use core::OpAttributeSpec;
pub use core::OpControlFlow;
pub use core::OpDTypeRule;
pub use core::OpDifferentiation;
pub use core::OpEffect;
pub use core::OpFusionClass;
pub use core::OpLowering;
pub use core::OpShapeRule;
pub use core::OpValueKind;
pub use core::OperationContract;
pub use core::Path;
pub use core::PerfStat;
pub use core::REALM_BANNER;
pub use core::Result;
pub use core::ScopedTimer;
pub use core::Stopwatch;
pub use core::Timestamp;
pub use core::VIEWPORT_TITLE;
pub use core::Validation;
pub use core::ValidationSeverity;
pub use core::apply_numeric_mode;
pub use core::brand_viewport;
pub use crypto::pqc::Keypair;
pub use crypto::pqc::PublicKey;
pub use crypto::pqc::SecretKey;
pub use crypto::pqc::Signature;
pub use crypto::Hash;
pub use crypto::Hasher;
pub use crypto::MerkleProof;
pub use crypto::MerkleTree;
pub use crypto::SecureBuffer;
pub use crypto::Shake128;
pub use crypto::Shake256;
pub use data::Batch;
pub use data::DataFrame;
pub use data::DataFrameView;
pub use data::DataLoader;
pub use data::DataLoaderConfig;
pub use data::Dataset;
pub use data::OhlcvDataset;
pub use data::OhlcvView;
pub use data::OhlcvWindowConfig;
pub use data::OhlcvWindows;
pub use data::Sample;
pub use data::Series;
pub use data::SeriesView;
pub use data::SeriesViewMut;
pub use data::SplitResult;
pub use data::Subset;
pub use data::UnixTimeUnit;
pub use image::Image;
pub use image::ImageFormat;
pub use image::ImageLayout;
pub use matrix::Matrix;
pub use media::MediaPlayer;
pub use net::MCP_LATEST_PROTOCOL_VERSION;
pub use net::McpArguments;
pub use net::McpCacheScope;
pub use net::McpServer;
pub use net::McpServerConfig;
pub use net::McpTextResource;
pub use net::McpTool;
pub use net::McpToolResult;
pub use net::TcpFramed;
pub use net::TcpListener;
pub use net::TcpStream;
pub use render::Aabb;
pub use render::AlphaMode;
pub use render::Camera;
pub use render::CameraProjection;
pub use render::FlatColorMaterial;
pub use render::Material;
pub use render::MaterialId;
pub use render::SceneMaterial;
pub use render::SurfaceMaterial;
pub use render::Texture;
pub use render::TextureHandle;
pub use render::UnlitMaterial;
pub use video::VideoDecoder;
pub use video::VideoDemuxer;
pub use video::VideoEncoder;
pub use video::VideoFrame;
pub use video::VideoMuxer;
pub use video::VideoPlayer;
pub use video::VideoRecorder;
pub use input::INPUT_MOD_ALT;
pub use input::INPUT_MOD_CTRL;
pub use input::INPUT_MOD_NONE;
pub use input::INPUT_MOD_SHIFT;
pub use input::INPUT_MOD_SUPER;
pub use input::InputEvent;
pub use input::InputEventKind;
pub use input::InputModifiers;
pub use input::InputState;
pub use input::Key;
pub use input::MotionSpeed;
pub use input::PinchPhase;
pub use input::ScrollGesture;
pub use runtime::CapturedResourceDesc;
pub use runtime::ClockCalibration;
pub use runtime::DeviceHardwareInfo;
pub use runtime::DeviceInfo;
pub use runtime::DeviceKind;
pub use runtime::DeviceSelection;
pub use runtime::DeviceSoftwareInfo;
pub use runtime::DeviceSummary;
pub use runtime::Engine;
pub use runtime::EngineBuilder;
pub use runtime::EngineRequirements;
pub use runtime::Event;
pub use runtime::ExecutionBindingDesc;
pub use runtime::ExecutionBindingRole;
pub use runtime::ExecutionPlan;
pub use runtime::ExecutionPlanDiagnostics;
pub use runtime::FusionStats;
pub use runtime::HostClockDomain;
pub use runtime::LogComponent;
pub use runtime::LogLevel;
pub use runtime::LogOptions;
pub use runtime::Presenter;
pub use runtime::SdlWindow;
pub use runtime::SemanticAccessMode;
pub use runtime::SemanticAliasDesc;
pub use runtime::SemanticAutogradDesc;
pub use runtime::SemanticGraph;
pub use runtime::SemanticLoweringAnalysis;
pub use runtime::SemanticOpDesc;
pub use runtime::SemanticOpId;
pub use runtime::SemanticStorageBinding;
pub use runtime::SemanticValueAccess;
pub use runtime::SemanticValueDesc;
pub use runtime::SemanticValueId;
pub use runtime::Timer;
pub use runtime::TimerDomain;
pub use ui::FontId;
pub use ui::GlyphInfo;
pub use ui::NodeCanvas;
pub use ui::NodeCanvasGrid;
pub use ui::NodeCanvasHit;
pub use ui::NodeCanvasHitItem;
pub use ui::NodeCanvasState;
pub use ui::PixelRect;
pub use ui::PositionedGlyph;
pub use ui::TextAtlas;
pub use ui::TextLayout;
pub use ui::TextLayoutConfig;
pub use ui::Ui;
pub use ui::UiAlign;
pub use ui::UiDirection;
pub use ui::UiEdge;
pub use ui::UiLayout;
pub use ui::UiSizing;
pub use ui::UiStyle;
pub use ui::UiTabBarResult;
pub use ui::UiTabBarState;
pub use ui::UiTabItem;
pub use ui::UiTreeRowConfig;
pub use ui::UiTreeRowResult;
pub use ui::WorldAabb;
pub use viewer::SharedItem;
pub use viewer::TrainingPreviewFrame;
pub use viewer::TrainingViewerConfig;
pub use viewer::TrainingViewerSource;
pub use viewer::Viewer;
pub use viewer::ViewerAudioView;
pub use viewer::ViewerCanvasBackground;
pub use viewer::ViewerConfig;
pub use viewer::ViewerLiveCapabilities;
pub use viewer::ViewerLiveSource;
pub use viewer::ViewerMode;
pub use viewer::Workspace;
pub use viewer::WorkspaceItem;
pub use viewer::WorkspaceNode;

Modules§

anim
Host-side skeletal animation values and operations.
audio
Semantic planar FP32 audio, stateless DSP, codecs, and device sessions.
compute
Extension compute kernels for SDK and third-party workloads.
core
Foundational OA values, metadata, and failure contracts.
crypto
Cryptographic primitives, secure host memory, post-quantum signatures, and schema-owned Vulkan batch hashing.
data
Checked host columns, OHLCV windows, datasets and device batch collation.
image
Still-image codecs and stateless image transformations.
input
oa::input — platform-neutral input layer.
matrix
Matrix values and stateless numerical operations.
media
Coordination of independently owned, timed audio and video tracks.
ml
Machine-learning operations, differentiation, layers, and optimizers.
net
Blocking CPU network transport primitives.
plot
oa::plot — matplotlib-style retained figure and axes.
render
Rendering, texture, mesh, material, scene, camera, and presentation contracts.
runtime
Engine construction, execution ownership, storage, and completion.
ui
Retained GPU-composed UI layer.
video
Video-frame values, codecs, containers, and stateful stream sessions.
viewer
oa::Viewer — windowed and headless media inspection application.
vision
Interpretation of image and video values.

Macros§

log_debug
Write a debug record in debug builds; release builds do not evaluate arguments.
log_error
Write an error record without changing control flow.
log_fatal
Write a fatal-severity record without terminating execution.
log_info
Write an informational record through the selected engine logger.
log_trace
Write a trace record in debug builds; release builds do not evaluate arguments.
log_warn
Write a recoverable-warning record through the selected engine logger.
oa_validate
Validate a condition and report via the OA validation layer.
oa_warn_perf
Performance warning: logs at Warning severity when cond is true. Does not return an error. Compiled out in release without the feature.