pub struct VirtualAgent {
pub handle: PackedHandle,
pub kind: AgentKind,
pub name: String,
pub vendor_name: String,
pub feature_mask: u32,
pub profile_id: String,
pub profile_revision: String,
pub queues_max: u32,
pub queue_min_size: u32,
pub queue_max_size: u32,
pub queue_type: u32,
}Expand description
One virtual agent instance.
Fields§
§handle: PackedHandle§kind: AgentKind§name: String§vendor_name: String§feature_mask: u32Bitmask of agent features. SoftGPU: KERNEL_DISPATCH for queue + AQL intercept only.
profile_id: String§profile_revision: String§queues_max: u32§queue_min_size: u32§queue_max_size: u32§queue_type: u32Implementations§
Source§impl VirtualAgent
impl VirtualAgent
Sourcepub fn gpu_from_profile(handle: PackedHandle, profile: &DeviceProfile) -> Self
pub fn gpu_from_profile(handle: PackedHandle, profile: &DeviceProfile) -> Self
Build the SoftGPU GPU agent from a device profile.
Trait Implementations§
Source§impl Clone for VirtualAgent
impl Clone for VirtualAgent
Source§fn clone(&self) -> VirtualAgent
fn clone(&self) -> VirtualAgent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VirtualAgent
impl RefUnwindSafe for VirtualAgent
impl Send for VirtualAgent
impl Sync for VirtualAgent
impl Unpin for VirtualAgent
impl UnsafeUnpin for VirtualAgent
impl UnwindSafe for VirtualAgent
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