pub struct SceneUpload {
pub grids: Vec<GridUpload>,
}Expand description
CPU-side aggregation of every grid in a scene. Built once at
startup; per-grid transforms are recomputed each frame and
passed to render_scene separately.
Fields§
§grids: Vec<GridUpload>One GridUpload per scene grid, in the order the shader
iterates them; index = the scene_idx handed to
GpuSceneResident::refresh_chunk / evict_chunk and the
per-grid camera slot.
Implementations§
Source§impl SceneUpload
impl SceneUpload
Sourcepub fn grid_count(&self) -> u32
pub fn grid_count(&self) -> u32
Number of grids, saturated into u32 (the type the shader’s
grid_count uniform uses).
Auto Trait Implementations§
impl Freeze for SceneUpload
impl RefUnwindSafe for SceneUpload
impl Send for SceneUpload
impl Sync for SceneUpload
impl Unpin for SceneUpload
impl UnsafeUnpin for SceneUpload
impl UnwindSafe for SceneUpload
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