pub enum GpuResource {
Borrowed(Vec<u8>),
Resident(GpuBufferHandle),
}Expand description
A GPU-resident or host-side resource.
Variants§
Trait Implementations§
Source§impl Clone for GpuResource
impl Clone for GpuResource
Source§fn clone(&self) -> GpuResource
fn clone(&self) -> GpuResource
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 moreSource§impl From<GpuBufferHandle> for GpuResource
impl From<GpuBufferHandle> for GpuResource
Source§fn from(handle: GpuBufferHandle) -> Self
fn from(handle: GpuBufferHandle) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for GpuResource
impl !UnwindSafe for GpuResource
impl Freeze for GpuResource
impl Send for GpuResource
impl Sync for GpuResource
impl Unpin for GpuResource
impl UnsafeUnpin for GpuResource
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