pub enum GfxFormat {
Rgba8Unorm,
Rg16Float,
R32Uint,
Depth32Float,
}Expand description
Backend-neutrale Texturformate, die das G-Buffer-Layout braucht.
Variants§
Rgba8Unorm
4×8 Bit unorm, linear 0..1 — quantisiert.
Rg16Float
2×16 Bit Float — signed (Velocity), keine Quantisierung.
R32Uint
1×32 Bit Uint — Visibility-ID (ADR-0003, zweite Quelle).
Depth32Float
Tiefen-Attachment.
Implementations§
Source§impl GfxFormat
impl GfxFormat
Sourcepub fn bytes_per_pixel(&self) -> u32
pub fn bytes_per_pixel(&self) -> u32
Speicherbedarf pro Pixel in Bytes.
Sourcepub fn channel_count(&self) -> usize
pub fn channel_count(&self) -> usize
Nutzbare Kanäle des Formats.
Trait Implementations§
impl Copy for GfxFormat
impl Eq for GfxFormat
impl StructuralPartialEq for GfxFormat
Auto Trait Implementations§
impl Freeze for GfxFormat
impl RefUnwindSafe for GfxFormat
impl Send for GfxFormat
impl Sync for GfxFormat
impl Unpin for GfxFormat
impl UnsafeUnpin for GfxFormat
impl UnwindSafe for GfxFormat
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