#[non_exhaustive]pub struct PassOptions {
pub min_filter: TextureFilter,
pub mag_filter: TextureFilter,
pub depth_texture: Option<DepthTexture>,
pub auto_clear_depth: bool,
}Expand description
pass( scene, camera, options )’s options object, as far as the ported
pages use it.
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.min_filter: TextureFilteroptions.minFilter — the pass’s colour texture’s minification filter.
mag_filter: TextureFilteroptions.magFilter — the pass’s colour texture’s magnification filter.
depth_texture: Option<DepthTexture>options.depthTexture — depthTexture = options.depthTexture || new DepthTexture(). A pass given another pass’s depth attachment renders
into it, which is how webgpu_deferred’s transparent pass depth-tests
against the opaque G-buffer it never drew.
auto_clear_depth: booloptions.autoClearDepth, copied onto renderer.autoClearDepth for the
duration of the pass. false keeps the shared depth attachment’s
contents (loadOp: "load").
Trait Implementations§
Source§impl Clone for PassOptions
impl Clone for PassOptions
Source§impl Debug for PassOptions
impl Debug for PassOptions
Auto Trait Implementations§
impl !RefUnwindSafe for PassOptions
impl !Send for PassOptions
impl !Sync for PassOptions
impl !UnwindSafe for PassOptions
impl Freeze for PassOptions
impl Unpin for PassOptions
impl UnsafeUnpin for PassOptions
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