pub struct SelectionOpBuffer(/* private fields */);Expand description
The selection operation uniform buffer for storing selection operations.
This buffer holds a single u32 value representing the index of the selection operation to be
performed, this includes both primitive operations and custom operations, the value is obtained
from SelectionExpr::as_u32, see its documentation for more
details.
Implementations§
Trait Implementations§
Source§impl BufferWrapper for SelectionOpBuffer
impl BufferWrapper for SelectionOpBuffer
Source§const DEFAULT_USAGES: BufferUsages = _
const DEFAULT_USAGES: BufferUsages = _
The default usages.
Source§impl Clone for SelectionOpBuffer
impl Clone for SelectionOpBuffer
Source§fn clone(&self) -> SelectionOpBuffer
fn clone(&self) -> SelectionOpBuffer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SelectionOpBuffer
impl Debug for SelectionOpBuffer
Source§impl From<SelectionOpBuffer> for Buffer
impl From<SelectionOpBuffer> for Buffer
Source§fn from(wrapper: SelectionOpBuffer) -> Self
fn from(wrapper: SelectionOpBuffer) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SelectionOpBuffer
impl !RefUnwindSafe for SelectionOpBuffer
impl Send for SelectionOpBuffer
impl Sync for SelectionOpBuffer
impl Unpin for SelectionOpBuffer
impl !UnwindSafe for SelectionOpBuffer
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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