pub struct StorageBuffer {
pub id: u32,
pub size: usize,
}Expand description
Fields§
§id: u32§size: usizeImplementations§
Source§impl StorageBuffer
impl StorageBuffer
Sourcepub fn new(size: usize) -> Self
pub fn new(size: usize) -> Self
Creates a new SSBO with the given byte size (zero-initialised).
Sourcepub fn resize(&mut self, size: usize)
pub fn resize(&mut self, size: usize)
Resizes the buffer (contents become undefined if size changed).
Auto Trait Implementations§
impl Freeze for StorageBuffer
impl RefUnwindSafe for StorageBuffer
impl Send for StorageBuffer
impl Sync for StorageBuffer
impl Unpin for StorageBuffer
impl UnsafeUnpin for StorageBuffer
impl UnwindSafe for StorageBuffer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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