pub(crate) struct CommandBufferTextureMemoryActions {
init_actions: Vec<TextureInitTrackerAction>,
discards: Vec<TextureSurfaceDiscard>,
}
Fields§
§init_actions: Vec<TextureInitTrackerAction>
The tracker actions that we need to be executed before the command buffer is executed.
discards: Vec<TextureSurfaceDiscard>
All the discards that haven’t been followed by init again within the command buffer i.e. everything in this list resets the texture init state after the command buffer execution
Implementations§
source§impl CommandBufferTextureMemoryActions
impl CommandBufferTextureMemoryActions
pub(crate) fn drain_init_actions( &mut self, ) -> Drain<'_, TextureInitTrackerAction>
pub(crate) fn discard(&mut self, discard: TextureSurfaceDiscard)
pub(crate) fn register_init_action( &mut self, action: &TextureInitTrackerAction, ) -> Vec<TextureSurfaceDiscard>
pub(crate) fn register_implicit_init( &mut self, texture: &Arc<Texture>, range: TextureInitRange, )
Trait Implementations§
source§impl Default for CommandBufferTextureMemoryActions
impl Default for CommandBufferTextureMemoryActions
source§fn default() -> CommandBufferTextureMemoryActions
fn default() -> CommandBufferTextureMemoryActions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommandBufferTextureMemoryActions
impl !RefUnwindSafe for CommandBufferTextureMemoryActions
impl Send for CommandBufferTextureMemoryActions
impl Sync for CommandBufferTextureMemoryActions
impl Unpin for CommandBufferTextureMemoryActions
impl !UnwindSafe for CommandBufferTextureMemoryActions
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