oarust 0.10.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=a36348b8481ca6a69924986b6a71f762eb029f9cd8a1b92a0e03688f9fdfa077
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>,
}