oarust 0.11.0

GPU-first semantic computing engine written in Rust
// @generated by tool/gen/fn/generate.py; DO NOT EDIT.
// schema=runtime_types.json schema_version=1 generator_version=64
// schema_sha256=53cefe34854483bb6cd9694205a612adc74e404c1a5a5fa6140418e6069ecbfc
use super::DeviceKind;
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct DeviceHardwareInfo {
	pub(crate) index: usize,
	pub(crate) name: String,
	pub(crate) kind: DeviceKind,
	pub(crate) vendor_id: u32,
	pub(crate) device_id: u32,
	pub(crate) local_memory_bytes: u64,
	pub(crate) local_memory_budget_bytes: Option<u64>,
	pub(crate) local_memory_usage_bytes: Option<u64>,
	pub(crate) max_compute_shared_memory_bytes: u32,
	pub(crate) max_compute_workgroup_invocations: u32,
	pub(crate) subgroup_size: u32,
	pub(crate) storage_buffer_descriptors: u32,
	pub(crate) storage_image_descriptors: u32,
	pub(crate) graphics: bool,
	pub(crate) swapchain: bool,
}

#[derive(Clone, Debug, PartialEq, Eq)]
pub struct DeviceSoftwareInfo {
	pub(crate) api_version: String,
	pub(crate) driver_name: String,
	pub(crate) driver_info: String,
	pub(crate) driver_version: u32,
	pub(crate) capability_identity: u64,
	pub(crate) shader_float16: bool,
	pub(crate) shader_float64: bool,
	pub(crate) shader_integer_dot_product: bool,
	pub(crate) cooperative_matrix_tuple_count: usize,
}

#[derive(Clone, Debug, PartialEq, Eq)]
pub struct DeviceInfo {
	pub hardware: DeviceHardwareInfo,
	pub software: DeviceSoftwareInfo,
}

#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct PresentationCapabilities {
	pub min_image_count: u32,
	pub max_image_count: Option<u32>,
	pub current_extent: Option<[u32; 2]>,
	pub min_extent: [u32; 2],
	pub max_extent: [u32; 2],
	pub format_count: usize,
	pub present_mode_count: usize,
	pub supports_color_attachment: bool,
	pub supports_transfer_dst: bool,
}

#[derive(Clone, Debug, Default, PartialEq, Eq)]
pub struct EngineRequirements {
	pub(crate) graphics: bool,
	pub(crate) presentation: bool,
	pub(crate) video_decode: Vec<crate::video::VideoDecodeProfile>,
	pub(crate) video_encode: Vec<crate::video::VideoEncodeProfile>,
}

/// Engine-lifetime counters of fusion decisions, decline reasons and JIT admissions.
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
pub struct FusionStats {
	pub(crate) examined_node_count: u64,
	pub(crate) disabled_node_count: u64,
	pub(crate) not_elementwise_node_count: u64,
	pub(crate) policy_excluded_node_count: u64,
	pub(crate) hazard_node_count: u64,
	pub(crate) isolated_node_count: u64,
	pub(crate) extent_boundary_node_count: u64,
	pub(crate) cross_invocation_node_count: u64,
	pub(crate) program_rejected_node_count: u64,
	pub(crate) foreign_device_node_count: u64,
	pub(crate) tape_bound_node_count: u64,
	pub(crate) tape_capacity_node_count: u64,
	pub(crate) resource_node_count: u64,
	pub(crate) specialization_declined_node_count: u64,
	pub(crate) tape_fused_node_count: u64,
	pub(crate) specialized_fused_node_count: u64,
	pub(crate) pass_count: u64,
	pub(crate) structural_region_count: u64,
	pub(crate) structural_node_count: u64,
	pub(crate) tape_region_count: u64,
	pub(crate) specialized_region_count: u64,
	pub(crate) jit_disabled_count: u64,
	pub(crate) jit_admitted_count: u64,
	pub(crate) jit_reused_count: u64,
	pub(crate) jit_policy_tape_count: u64,
	pub(crate) jit_cached_negative_count: u64,
	pub(crate) jit_bound_count: u64,
	pub(crate) jit_compiler_unavailable_count: u64,
	pub(crate) jit_compile_rejected_count: u64,
	pub(crate) jit_pipeline_rejected_count: u64,
	pub(crate) jit_queued_count: u64,
	pub(crate) jit_pending_count: u64,
	pub(crate) jit_compile_count: u64,
	pub(crate) jit_compile_ns: u64,
	pub(crate) jit_pipeline_ns: u64,
	pub(crate) dnn_applied_partition_count: u64,
	pub(crate) dnn_fallback_partition_count: u64,
}