pub struct ImpostorCaptureJob {
pub actor_id: u32,
pub world_bounds: ChunkBounds,
pub num_views: u32,
pub atlas_slot: u32,
pub is_complete: bool,
pub capture_frame: u64,
pub view_directions: Vec<Vec3>,
}Fields§
§actor_id: u32§world_bounds: ChunkBounds§num_views: u32§atlas_slot: u32§is_complete: bool§capture_frame: u64§view_directions: Vec<Vec3>Implementations§
Source§impl ImpostorCaptureJob
impl ImpostorCaptureJob
pub fn new( actor_id: u32, bounds: ChunkBounds, num_views: u32, slot: u32, ) -> Self
pub fn view_matrix_for_view(&self, view_idx: u32) -> Mat4
pub fn atlas_uv_for_view(&self, view_idx: u32) -> (Vec2, Vec2)
pub fn mark_complete(&mut self, frame: u64)
Trait Implementations§
Source§impl Clone for ImpostorCaptureJob
impl Clone for ImpostorCaptureJob
Auto Trait Implementations§
impl Freeze for ImpostorCaptureJob
impl RefUnwindSafe for ImpostorCaptureJob
impl Send for ImpostorCaptureJob
impl Sync for ImpostorCaptureJob
impl Unpin for ImpostorCaptureJob
impl UnsafeUnpin for ImpostorCaptureJob
impl UnwindSafe for ImpostorCaptureJob
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.