pub struct PostTarget { /* private fields */ }Expand description
Renderer-owned post-processing texture target.
Implementations§
Source§impl PostTarget
impl PostTarget
Sourcepub fn new(
device: &Device,
label: &str,
width: u32,
height: u32,
format: TextureFormat,
) -> Result<Self, ScenixError>
pub fn new( device: &Device, label: &str, width: u32, height: u32, format: TextureFormat, ) -> Result<Self, ScenixError>
Allocates a texture target suitable for post-processing.
Sourcepub const fn view(&self) -> &TextureView
pub const fn view(&self) -> &TextureView
Returns the texture view.
Sourcepub const fn format(&self) -> TextureFormat
pub const fn format(&self) -> TextureFormat
Returns the texture format.
Auto Trait Implementations§
impl !RefUnwindSafe for PostTarget
impl !UnwindSafe for PostTarget
impl Freeze for PostTarget
impl Send for PostTarget
impl Sync for PostTarget
impl Unpin for PostTarget
impl UnsafeUnpin for PostTarget
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