pub enum RecordedBinding {
Buffer {
metal_buffer: Buffer,
offset: u64,
},
Bytes(Vec<u8>),
}Expand description
A recorded kernel argument binding.
When the encoder is in capture mode, each set_buffer / set_bytes call
is stored as a RecordedBinding instead of being applied to Metal.
Variants§
Buffer
A Metal buffer at the given offset.
Bytes(Vec<u8>)
Inline bytes (small constant data, copied).
Trait Implementations§
Source§impl Clone for RecordedBinding
impl Clone for RecordedBinding
Source§fn clone(&self) -> RecordedBinding
fn clone(&self) -> RecordedBinding
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 moreAuto Trait Implementations§
impl Freeze for RecordedBinding
impl RefUnwindSafe for RecordedBinding
impl Send for RecordedBinding
impl Sync for RecordedBinding
impl Unpin for RecordedBinding
impl UnsafeUnpin for RecordedBinding
impl UnwindSafe for RecordedBinding
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