pub struct ShadowTarget<'a> {
pub view: &'a TextureView,
pub offset: UVec2,
pub size: usize,
}Expand description
Requirements to render to a particular shadow map.
view + size form the start/end of the viewport to render to.
Fields§
§view: &'a TextureViewView to render to
offset: UVec22D offset in the image.
size: usizeSize in both dimentions of the viewport
Auto Trait Implementations§
impl<'a> Freeze for ShadowTarget<'a>
impl<'a> !RefUnwindSafe for ShadowTarget<'a>
impl<'a> Send for ShadowTarget<'a>
impl<'a> Sync for ShadowTarget<'a>
impl<'a> Unpin for ShadowTarget<'a>
impl<'a> !UnwindSafe for ShadowTarget<'a>
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