Struct wgpu_core::command::bundle::VertexState
source · struct VertexState {
buffer: Arc<Buffer>,
range: Range<BufferAddress>,
is_dirty: bool,
}
Expand description
The state of a single vertex buffer slot during render bundle encoding.
RenderBundleEncoder::finish
uses this to drop redundant
SetVertexBuffer
commands from the final RenderBundle
. It
records one vertex buffer slot’s state changes here, and then
calls this type’s flush
method just before any draw command to
produce a SetVertexBuffer
commands if one is necessary.
Fields§
§buffer: Arc<Buffer>
§range: Range<BufferAddress>
§is_dirty: bool
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VertexState
impl !RefUnwindSafe for VertexState
impl Send for VertexState
impl Sync for VertexState
impl Unpin for VertexState
impl !UnwindSafe for VertexState
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