oarust 0.14.0

GPU-first semantic computing engine written in Rust
//! Engine construction, execution ownership, storage, and completion.

mod clock_calibration;
mod device;
mod dispatch;
mod dna;
#[doc(hidden)]
pub use dna::fusion::{EpilogueFusionDisabled, SingleHeadSdpaFusionEnabled};
mod engine;
mod event;
mod graph;
mod instance;
mod log;
mod plan;
mod presentation;
mod presenter;
mod session;
mod storage;
mod timer;
mod window;

pub use clock_calibration::{ClockCalibration, HostClockDomain};
pub(crate) use device::logical::commands::{RenderingCommands, SyncCommands};
pub(crate) use device::logical::dispatch::{
	BufferAccess, BufferBinding, ComputeDispatch, IndirectDispatch, PushConstant,
};
pub use device::{DeviceKind, DeviceSummary};
pub(crate) use dispatch::{
	AudioSemanticDispatch, AudioSemanticOutput, ImageSemanticDispatch, ImageSemanticInput,
	OptionalSemanticDispatch, QuantSemanticDispatch, QuantSemanticInput, QuantSemanticOutput,
	SemanticDispatch,
};
pub(crate) use dna::kernel::KernelId;
pub(in crate::runtime) use dna::provider::blas::{
	GemmEpilogue, MatmulPreference, MatmulProblem, lower_mat_mul_nt_plan, plan_mat_mul_nt_problem,
};
pub(crate) use dna::provider::blas::{lower_mat_mul_nt, plan_mat_mul_nt, plan_mat_mul_nt_lowered};
pub(crate) use dna::provider::precision::{
	record_linear_f16, record_mat_mul_nt_f16, record_sum_f16,
};
pub(crate) use engine::{
	CaptureAttempt, EngineHandle, MlDsaDeviceKey, MlKemDeviceKey, MlKemSharedSecret,
	RecordingTransaction, SecretLoweringScope, SemanticLoweringScope, VideoDecoderBackend,
	VideoEncoderBackend,
};
pub use engine::{DeviceSelection, Engine, EngineBuilder};
pub use event::Event;
pub use graph::semantic::{
	SemanticAccessMode, SemanticAliasDesc, SemanticAutogradDesc, SemanticGraph,
	SemanticLoweringAnalysis, SemanticOpDesc, SemanticOpId, SemanticValueAccess, SemanticValueDesc,
	SemanticValueId,
};
#[doc(hidden)]
pub use log::{__log_should_write, __log_write};
pub use log::{LogComponent, LogLevel, LogOptions};
pub use plan::{
	CapturedResourceDesc, ExecutionBindingDesc, ExecutionBindingRole, ExecutionPlan,
	ExecutionPlanDiagnostics, SemanticStorageBinding,
};
pub use presenter::Presenter;
pub(crate) use storage::Storage;
pub use timer::{Timer, TimerDomain};
pub use types::{
	DeviceHardwareInfo, DeviceInfo, DeviceSoftwareInfo, EngineRequirements, FusionStats,
	PresentationCapabilities,
};

pub use window::SdlWindow;
pub(crate) use window::decoration as window_decoration;

pub(crate) use device::Device;
pub(in crate::runtime) use device::DevicePhysical;
pub(crate) use device::logical::SceneDrawCmd;
pub(in crate::runtime) use device::logical::buffer::Buffer;
pub(crate) use device::logical::buffer::MeshBuffer;
pub(in crate::runtime) use device::logical::command::{
	RecordedCommandBuffer, ReusableCommandBuffer,
};
pub(in crate::runtime) use device::logical::retirement::{
	DeferredRetirement, RetirementService, RetirementTicket,
};
pub(crate) use device::logical::secret_buffer::SecretErasure;
pub(in crate::runtime) use device::logical::secret_buffer::{SecretBinding, SecretBuffer};
pub(in crate::runtime) use device::logical::swapchain::PresentationSwapchain;
pub(in crate::runtime) use device::logical::timestamp::TimestampPair;
pub(crate) use device::logical::video::NativeDecodedFrame;
pub(in crate::runtime) use device::logical::video::{DecodeSession, EncodeSession};
pub(in crate::runtime) use instance::Instance;
pub use presentation::PresentationSurface;

pub(crate) use device::logical::pipeline::{
	CanvasGridPipeline, FlatColorPipeline, GraphicsPipeline, SurfaceBlendPipeline,
	SurfaceDescriptorArena, SurfaceDescriptorLayouts, SurfacePipeline, UnlitDescriptorArena,
	UnlitDescriptorLayouts, UnlitPipeline, decode_spirv_bytes,
};

pub(crate) use device::logical::image::{NativeRgbaImage, RenderTarget};

#[cfg(test)]
#[path = "../../../test/rs/runtime/bounded_add_unit.rs"]
mod bounded_add_unit;

#[cfg(test)]
#[path = "../../../test/rs/runtime/compatibility_engine_unit.rs"]
mod compatibility_engine_unit;

#[path = "runtime/parity.gen.rs"]
mod parity;
#[path = "runtime/type.gen.rs"]
mod types;