pub struct GpuBuffer<T> {
pub data: Vec<T, FrameAllocator>,
pub size: DeviceIntSize,
pub format: ImageFormat,
pub deferred_uv_copies: Vec<DeferredUvCopy>,
epoch: u32,
}Fields§
§data: Vec<T, FrameAllocator>§size: DeviceIntSize§format: ImageFormat§deferred_uv_copies: Vec<DeferredUvCopy>§epoch: u32Implementations§
Source§impl GpuBuffer<GpuBufferBlockF>
impl GpuBuffer<GpuBufferBlockF>
Sourcepub fn apply_deferred_uv_copies(&mut self)
pub fn apply_deferred_uv_copies(&mut self)
Apply the uv rect copies deferred during finalize. Must be called after the
renderer has resolved external images into the gpu buffer.
Source§impl<T> GpuBuffer<T>
impl<T> GpuBuffer<T>
pub fn is_empty(&self) -> bool
pub fn resolve_handle(&self, handle: GpuBufferHandle) -> GpuBufferAddress
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for GpuBuffer<T>
impl<T> RefUnwindSafe for GpuBuffer<T>where
T: RefUnwindSafe,
impl<T> Send for GpuBuffer<T>where
T: Send,
impl<T> !Sync for GpuBuffer<T>
impl<T> Unpin for GpuBuffer<T>
impl<T> UnsafeUnpin for GpuBuffer<T>
impl<T> UnwindSafe for GpuBuffer<T>where
T: RefUnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more