pub struct GdrCullResult {
pub list: Vec<u32>,
pub bases: Vec<u32>,
pub capacity: Vec<u32>,
pub args: Vec<GdrArgs>,
}Expand description
Das Ergebnis eines Cull-Laufs: pro Mesh die fortlaufende Liste
sichtbarer Instanz-IDs plus die Indirect-Argumente mit der Zahl der
Sichtbaren — gespiegeltes cs_gdr der GPU.
Fields§
§list: Vec<u32>Fortlaufend kompaktiert: Mesh m belegt die Positionen
bases[m] .. bases[m] + capacity[m].
bases: Vec<u32>Listenanfang je Mesh (Index in list).
capacity: Vec<u32>Kapazitaet je Mesh (Zahl der Instanzen dieses Meshes).
args: Vec<GdrArgs>Indirect-Argumente je Mesh; instance_count = Zahl der
Sichtbaren (die GPU zaehlt per atomicAdd dieselbe Zahl).
Trait Implementations§
Source§impl Clone for GdrCullResult
impl Clone for GdrCullResult
Source§fn clone(&self) -> GdrCullResult
fn clone(&self) -> GdrCullResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GdrCullResult
impl Debug for GdrCullResult
Source§impl Default for GdrCullResult
impl Default for GdrCullResult
Source§fn default() -> GdrCullResult
fn default() -> GdrCullResult
Returns the “default value” for a type. Read more
Source§impl PartialEq for GdrCullResult
impl PartialEq for GdrCullResult
Source§fn eq(&self, other: &GdrCullResult) -> bool
fn eq(&self, other: &GdrCullResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GdrCullResult
Auto Trait Implementations§
impl Freeze for GdrCullResult
impl RefUnwindSafe for GdrCullResult
impl Send for GdrCullResult
impl Sync for GdrCullResult
impl Unpin for GdrCullResult
impl UnsafeUnpin for GdrCullResult
impl UnwindSafe for GdrCullResult
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