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.
Binding ranges must be validated against the size of the buffer before
being stored in IndexState.
Fields§
§buffer: Arc<Buffer>§format: IndexFormat§range: Range<BufferAddress>§is_dirty: boolImplementations§
Source§impl IndexState
impl IndexState
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for IndexState
impl !UnwindSafe for IndexState
impl Freeze for IndexState
impl Send for IndexState
impl Sync for IndexState
impl Unpin for IndexState
impl UnsafeUnpin 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