#[non_exhaustive]pub struct RenderTargetOptions {
pub texture_type: TextureType,
pub samples: u32,
pub depth_buffer: bool,
pub min_filter: TextureFilter,
pub mag_filter: TextureFilter,
}Expand description
new RenderTarget( width, height, options ) — the options the port reads.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.texture_type: TextureTypeoptions.type — the colour attachment’s pixel format.
samples: u32RenderTarget’s default samples is 0; the renderer’s antialias
option does not propagate to user render targets, only to the
internal framebuffer target.
depth_buffer: booloptions.depthBuffer — whether the target gets a depth attachment.
min_filter: TextureFilteroptions.minFilter — the colour attachment’s minification filter.
mag_filter: TextureFilteroptions.magFilter — the colour attachment’s magnification filter.
Trait Implementations§
Source§impl Clone for RenderTargetOptions
impl Clone for RenderTargetOptions
impl Copy for RenderTargetOptions
Source§impl Debug for RenderTargetOptions
impl Debug for RenderTargetOptions
Auto Trait Implementations§
impl Freeze for RenderTargetOptions
impl RefUnwindSafe for RenderTargetOptions
impl Send for RenderTargetOptions
impl Sync for RenderTargetOptions
impl Unpin for RenderTargetOptions
impl UnsafeUnpin for RenderTargetOptions
impl UnwindSafe for RenderTargetOptions
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