pub struct HostGpu {
pub id: Option<GpuId>,
pub video_decoders: Option<Rc<dyn VideoDecoders>>,
pub hardware_buffer_allocator: Option<Arc<dyn HardwareBufferAllocator>>,
}Expand description
A GPU as a host gathers it: its name and what the system made for it, which every host hands
out as its SystemGpu.
Fields§
§id: Option<GpuId>§video_decoders: Option<Rc<dyn VideoDecoders>>§hardware_buffer_allocator: Option<Arc<dyn HardwareBufferAllocator>>Trait Implementations§
Source§impl SystemGpu for HostGpu
impl SystemGpu for HostGpu
Source§fn id(&self) -> Option<GpuId>
fn id(&self) -> Option<GpuId>
The GPU as its system names it;
None where the system names none.Source§fn video_decoders(&self) -> Option<Rc<dyn VideoDecoders>>
fn video_decoders(&self) -> Option<Rc<dyn VideoDecoders>>
Its video decoders, on its video hardware and on the processor, whose pictures are in its
memory;
None where the system decodes no video for the app.Source§fn hardware_buffer_allocator(&self) -> Option<Arc<dyn HardwareBufferAllocator>>
fn hardware_buffer_allocator(&self) -> Option<Arc<dyn HardwareBufferAllocator>>
What allocates its hardware buffers, from any thread;
None where the system allocates
none.Auto Trait Implementations§
impl !RefUnwindSafe for HostGpu
impl !Send for HostGpu
impl !Sync for HostGpu
impl !UnwindSafe for HostGpu
impl Forget for HostGpu
impl Freeze for HostGpuwhere
*const RcInner<dyn VideoDecoders> is !null: Freeze,
PhantomData<RcInner<dyn VideoDecoders>>: Freeze,
*const ArcInner<dyn HardwareBufferAllocator> is !null: Freeze,
PhantomData<ArcInner<dyn HardwareBufferAllocator>>: Freeze,
impl Move for HostGpu
impl Unpin for HostGpu
impl UnsafeUnpin for HostGpuwhere
*const RcInner<dyn VideoDecoders> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn VideoDecoders>>: UnsafeUnpin,
*const ArcInner<dyn HardwareBufferAllocator> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn HardwareBufferAllocator>>: UnsafeUnpin,
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