Struct wgpu_core::command::bundle::IndexState
source · struct IndexState {
buffer: Arc<Buffer>,
format: IndexFormat,
range: Range<BufferAddress>,
is_dirty: bool,
}
Expand description
A render bundle’s current index buffer state.
RenderBundleEncoder::finish
records the currently set index buffer here,
and calls State::flush_index
before any indexed draw command to produce
a SetIndexBuffer
command if one is necessary.
Fields§
§buffer: Arc<Buffer>
§format: IndexFormat
§range: Range<BufferAddress>
§is_dirty: bool
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IndexState
impl !RefUnwindSafe for IndexState
impl Send for IndexState
impl Sync for IndexState
impl Unpin for IndexState
impl !UnwindSafe for IndexState
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