pub struct TextureViewTarget {
pub view: TextureView,
pub width: u32,
pub height: u32,
}Expand description
Shared wgpu texture-view render target used by view-based TextureRenderer
backends.
Fields§
§view: TextureViewRender-target texture view.
width: u32Effective render width in pixels.
height: u32Effective render height in pixels.
Implementations§
Source§impl TextureViewTarget
impl TextureViewTarget
Sourcepub fn new(view: &TextureView, width: u32, height: u32) -> Self
pub fn new(view: &TextureView, width: u32, height: u32) -> Self
Create a shared texture-view render target wrapper.
Trait Implementations§
Source§impl Clone for TextureViewTarget
impl Clone for TextureViewTarget
Source§fn clone(&self) -> TextureViewTarget
fn clone(&self) -> TextureViewTarget
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 moreAuto Trait Implementations§
impl Freeze for TextureViewTarget
impl !RefUnwindSafe for TextureViewTarget
impl Send for TextureViewTarget
impl Sync for TextureViewTarget
impl Unpin for TextureViewTarget
impl UnsafeUnpin for TextureViewTarget
impl !UnwindSafe for TextureViewTarget
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