use super::*;
#[derive(Clone, Debug, Eq, Getter, New, PartialEq)]
pub struct GpuAdapterInfo {
#[get(type(copy))]
pub(crate) backend: GraphicsBackend,
pub(crate) device_name: String,
#[get(type(copy))]
pub(crate) hardware_verified: bool,
#[get(type(copy))]
pub(crate) shader_compiled: bool,
}
#[derive(Debug, Getter)]
pub struct NativeGpuDriver {
pub(crate) adapter: GpuAdapterInfo,
#[get(type(copy))]
pub(crate) device_handle: usize,
#[get(type(copy))]
pub(crate) queue_handle: usize,
#[get(type(copy))]
pub(crate) library_handle: usize,
#[get(skip)]
pub(crate) staging_buffer_handle: usize,
#[get(skip)]
pub(crate) staging_contents_ptr: usize,
#[get(skip)]
pub(crate) staging_buffer_capacity: usize,
#[get(type(copy))]
pub(crate) submitted_frames: u64,
#[get(type(copy))]
pub(crate) uploaded_instances: u64,
#[get(type(copy))]
pub(crate) uploaded_bytes: u64,
#[get(type(copy))]
pub(crate) last_upload_bytes: usize,
#[get(type(copy))]
pub(crate) last_submitted_batches: usize,
#[get(type(copy))]
pub(crate) staging_reallocations: u64,
pub(crate) fallback: RecordingGpuDriver,
}
#[cfg(any(target_os = "macos", target_os = "ios"))]
#[derive(Clone, Copy, Debug)]
pub(crate) struct MetalSelectors {
pub(crate) new_buffer_with_bytes: usize,
pub(crate) new_buffer_with_length: usize,
pub(crate) contents: usize,
pub(crate) command_buffer: usize,
pub(crate) commit: usize,
pub(crate) release: usize,
}