pub struct EmulatorConfig {
pub grid_dim: [u32; 3],
pub workgroup_dim: [u32; 3],
pub register_count: u32,
pub local_memory_size: usize,
pub device_memory_size: usize,
pub wave_width: u32,
pub trace_enabled: bool,
pub f64_enabled: bool,
pub max_instructions: u64,
pub initial_registers: Vec<(u8, u32)>,
}Fields§
§grid_dim: [u32; 3]§workgroup_dim: [u32; 3]§register_count: u32§local_memory_size: usize§device_memory_size: usize§wave_width: u32§trace_enabled: bool§f64_enabled: bool§max_instructions: u64Maximum instructions to execute (0 = unlimited). Default: 10,000,000
initial_registers: Vec<(u8, u32)>Initial register values set for all threads before execution.
Vec of (register_index, value) pairs.
Trait Implementations§
Source§impl Clone for EmulatorConfig
impl Clone for EmulatorConfig
Source§fn clone(&self) -> EmulatorConfig
fn clone(&self) -> EmulatorConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EmulatorConfig
impl Debug for EmulatorConfig
Auto Trait Implementations§
impl Freeze for EmulatorConfig
impl RefUnwindSafe for EmulatorConfig
impl Send for EmulatorConfig
impl Sync for EmulatorConfig
impl Unpin for EmulatorConfig
impl UnsafeUnpin for EmulatorConfig
impl UnwindSafe for EmulatorConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more