pub struct ClearBufferOp<'frame> {
pub target: Buffer<'frame>,
pub range: BufferRange,
}Expand description
One ordered zero-fill operation in a structured clear-buffer node.
Fields§
§target: Buffer<'frame>Logical buffer to clear.
range: BufferRangeNon-empty byte range to clear. Native alignment is validated by wgpu.
Implementations§
Source§impl<'frame> ClearBufferOp<'frame>
impl<'frame> ClearBufferOp<'frame>
Sourcepub const fn new(target: Buffer<'frame>, range: BufferRange) -> Self
pub const fn new(target: Buffer<'frame>, range: BufferRange) -> Self
Creates one declarative zero-fill operation.
Trait Implementations§
Source§impl<'frame> Clone for ClearBufferOp<'frame>
impl<'frame> Clone for ClearBufferOp<'frame>
impl<'frame> Copy for ClearBufferOp<'frame>
Source§impl<'frame> Debug for ClearBufferOp<'frame>
impl<'frame> Debug for ClearBufferOp<'frame>
impl<'frame> Eq for ClearBufferOp<'frame>
Source§impl<'frame> PartialEq for ClearBufferOp<'frame>
impl<'frame> PartialEq for ClearBufferOp<'frame>
impl<'frame> StructuralPartialEq for ClearBufferOp<'frame>
Auto Trait Implementations§
impl<'frame> Freeze for ClearBufferOp<'frame>
impl<'frame> RefUnwindSafe for ClearBufferOp<'frame>
impl<'frame> Send for ClearBufferOp<'frame>
impl<'frame> Sync for ClearBufferOp<'frame>
impl<'frame> Unpin for ClearBufferOp<'frame>
impl<'frame> UnsafeUnpin for ClearBufferOp<'frame>
impl<'frame> UnwindSafe for ClearBufferOp<'frame>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.