pub struct RotScaleBuffer(/* private fields */);Expand description
The scale rotation buffer for the BasicModifierBundle.
This buffer holds the per Gaussian rotation and scale modification data.
Implementations§
Source§impl RotScaleBuffer
impl RotScaleBuffer
Sourcepub fn update(&self, queue: &Queue, rot: Quat, scale: Vec3)
pub fn update(&self, queue: &Queue, rot: Quat, scale: Vec3)
Update the scale and rotation buffer.
Sourcepub fn update_with_pod(&self, queue: &Queue, pod: &RotScalePod)
pub fn update_with_pod(&self, queue: &Queue, pod: &RotScalePod)
Update the scale and rotation buffer with RotScalePod.
Trait Implementations§
Source§impl BufferWrapper for RotScaleBuffer
impl BufferWrapper for RotScaleBuffer
Source§const DEFAULT_USAGES: BufferUsages = _
const DEFAULT_USAGES: BufferUsages = _
The default usages.
Source§impl Debug for RotScaleBuffer
impl Debug for RotScaleBuffer
Source§impl FixedSizeBufferWrapper for RotScaleBuffer
impl FixedSizeBufferWrapper for RotScaleBuffer
Source§type Pod = RotScalePod
type Pod = RotScalePod
The POD element type that defines the layout/size.
Source§fn verify_buffer_size(
buffer: &Buffer,
) -> Result<(), FixedSizeBufferWrapperError>
fn verify_buffer_size( buffer: &Buffer, ) -> Result<(), FixedSizeBufferWrapperError>
Check if the given buffer matches the expected size. Read more
Source§impl From<RotScaleBuffer> for Buffer
impl From<RotScaleBuffer> for Buffer
Source§fn from(wrapper: RotScaleBuffer) -> Self
fn from(wrapper: RotScaleBuffer) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RotScaleBuffer
impl !RefUnwindSafe for RotScaleBuffer
impl Send for RotScaleBuffer
impl Sync for RotScaleBuffer
impl Unpin for RotScaleBuffer
impl !UnwindSafe for RotScaleBuffer
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> DownloadableBufferWrapper for T
impl<T> DownloadableBufferWrapper for T
Source§fn download<T>(
&self,
device: &Device,
queue: &Queue,
) -> impl Future<Output = Result<Vec<T>, DownloadBufferError>> + Sendwhere
T: NoUninit + AnyBitPattern,
fn download<T>(
&self,
device: &Device,
queue: &Queue,
) -> impl Future<Output = Result<Vec<T>, DownloadBufferError>> + Sendwhere
T: NoUninit + AnyBitPattern,
Download the buffer data.
Source§fn prepare_download(
&self,
device: &Device,
encoder: &mut CommandEncoder,
) -> Buffer
fn prepare_download( &self, device: &Device, encoder: &mut CommandEncoder, ) -> Buffer
Prepare for downloading the buffer data. Read more
Source§fn map_download<T>(
download: &Buffer,
device: &Device,
) -> impl Future<Output = Result<Vec<T>, DownloadBufferError>> + Sendwhere
T: NoUninit + AnyBitPattern,
fn map_download<T>(
download: &Buffer,
device: &Device,
) -> impl Future<Output = Result<Vec<T>, DownloadBufferError>> + Sendwhere
T: NoUninit + AnyBitPattern,
Map the download buffer to read the buffer data. 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