pub struct GdrInstance {
pub world: Mat4,
pub center: Vec3,
pub half: Vec3,
pub albedo: [f32; 4],
pub params: [f32; 4],
pub mesh: u32,
}Expand description
Eine getriebene Instanz: Welt-Matrix, world-space AABB (vom Aufruhr
mit mesh_bounds konservativ gerechnet), Material-Werte und die
Mesh-Schublade, in deren Indirect-Argument sie zeichnet.
Die Materialfelder entsprechen dem Batch-Uniform des klassischen Pfads (Albedo + Metallic, Roughness + Material-ID/255) — identische Bytes, damit beides dieselben Pixel liefert.
Fields§
§world: Mat4§center: Vec3§half: Vec3§albedo: [f32; 4]§params: [f32; 4]§mesh: u32Trait Implementations§
Source§impl Clone for GdrInstance
impl Clone for GdrInstance
Source§fn clone(&self) -> GdrInstance
fn clone(&self) -> GdrInstance
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 moreimpl Copy for GdrInstance
Source§impl Debug for GdrInstance
impl Debug for GdrInstance
Source§impl PartialEq for GdrInstance
impl PartialEq for GdrInstance
Source§fn eq(&self, other: &GdrInstance) -> bool
fn eq(&self, other: &GdrInstance) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GdrInstance
Auto Trait Implementations§
impl Freeze for GdrInstance
impl RefUnwindSafe for GdrInstance
impl Send for GdrInstance
impl Sync for GdrInstance
impl Unpin for GdrInstance
impl UnsafeUnpin for GdrInstance
impl UnwindSafe for GdrInstance
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