pub struct RenderPassDepthStencilAttachment {
pub view: Option<JsValue>,
pub depth_clear_value: Option<f32>,
pub depth_load_op: Option<&'static str>,
pub depth_store_op: Option<&'static str>,
pub depth_read_only: Option<bool>,
}Expand description
The depth-stencil portion of a RenderPassDescriptor, used as input to
begin_render_pass / begin_render_pass_to_texture.
Fields§
§view: Option<JsValue>The depth-stencil texture view to use.
When None, the renderer uses the default view into its
depth_texture field, allocating the depth texture lazily if
needed.
depth_clear_value: Option<f32>The depth clear value in 0.0..=1.0. None means
"load" (keep previous depth).
depth_load_op: Option<&'static str>The depth load op. None → "clear" when
depth_clear_value is Some, otherwise "load".
depth_store_op: Option<&'static str>The depth store op. None → "store".
depth_read_only: Option<bool>Whether depth reads should be enabled. None → false.
Implementations§
Source§impl RenderPassDepthStencilAttachment
impl RenderPassDepthStencilAttachment
pub fn get_view(&self) -> JsValue
pub fn try_get_view(&self) -> &Option<JsValue>
pub fn get_depth_clear_value(&self) -> f32
pub fn try_get_depth_clear_value(&self) -> &Option<f32>
pub fn get_depth_load_op(&self) -> &'static str
pub fn try_get_depth_load_op(&self) -> &Option<&'static str>
pub fn get_depth_store_op(&self) -> &'static str
pub fn try_get_depth_store_op(&self) -> &Option<&'static str>
pub fn get_depth_read_only(&self) -> bool
pub fn try_get_depth_read_only(&self) -> &Option<bool>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RenderPassDepthStencilAttachment
impl RefUnwindSafe for RenderPassDepthStencilAttachment
impl Send for RenderPassDepthStencilAttachment
impl Sync for RenderPassDepthStencilAttachment
impl Unpin for RenderPassDepthStencilAttachment
impl UnsafeUnpin for RenderPassDepthStencilAttachment
impl UnwindSafe for RenderPassDepthStencilAttachment
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