pub struct RenderTarget {
pub name: String,
pub format: TargetFormat,
pub size: TargetSize,
pub shape: TargetShape,
pub mips: u32,
pub history: bool,
pub shared: bool,
}Expand description
One image the frame makes (or keeps from the frame before).
Fields§
§name: StringThe renderer’s name for it where the source states one, else what it holds.
format: TargetFormat§size: TargetSize§shape: TargetShape§mips: u32Mip levels, at least 1.
history: boolThe frame reads what the previous frame left in it (a history: temporal anti-aliasing, adapted exposure, a re-projected occlusion): the consumer keeps it from one frame to the next, for each view.
One image for the frame, shared by every view (a shadow atlas, a look-up table), rather than one per view.
Trait Implementations§
Source§impl Clone for RenderTarget
impl Clone for RenderTarget
Source§impl Debug for RenderTarget
impl Debug for RenderTarget
Source§impl PartialEq for RenderTarget
impl PartialEq for RenderTarget
Source§impl Serialize for RenderTarget
impl Serialize for RenderTarget
impl StructuralPartialEq for RenderTarget
Auto Trait Implementations§
impl Forget for RenderTarget
impl Freeze for RenderTarget
impl RefUnwindSafe for RenderTarget
impl Send for RenderTarget
impl Sync for RenderTarget
impl Unpin for RenderTarget
impl UnsafeUnpin for RenderTarget
impl UnwindSafe for RenderTarget
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