pub(crate) struct ImmediateState {
pub(crate) immediates: Vec<u32>,
pub(crate) immediates_dirty: bool,
pub(crate) immediate_slots_set: ImmediateSlots,
}Fields§
§immediates: Vec<u32>§immediates_dirty: bool§immediate_slots_set: ImmediateSlotsA bitmask, tracking which 4-byte slots have been written via set_immediates.
Checked against the pipeline’s required slots before each draw call.
Implementations§
Source§impl ImmediateState
impl ImmediateState
pub(crate) fn set_immediates<E>(
&mut self,
limits: &Limits,
offset_bytes: u32,
data: &[u32],
) -> Result<(), E>where
E: From<ImmediateUploadError>,
pub(crate) fn flush_immediates( &mut self, layout: &Arc<PipelineLayout>, raw_encoder: &mut dyn DynCommandEncoder, )
Trait Implementations§
Source§impl Debug for ImmediateState
impl Debug for ImmediateState
Source§impl Default for ImmediateState
impl Default for ImmediateState
Source§fn default() -> ImmediateState
fn default() -> ImmediateState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ImmediateState
impl RefUnwindSafe for ImmediateState
impl Send for ImmediateState
impl Sync for ImmediateState
impl Unpin for ImmediateState
impl UnwindSafe for ImmediateState
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more