Struct wgpu::RenderBundleDepthStencil
#[repr(C)]pub struct RenderBundleDepthStencil {
pub format: TextureFormat,
pub depth_read_only: bool,
pub stencil_read_only: bool,
}
Expand description
Describes the depth/stencil attachment for render bundles.
Corresponds to a portion of WebGPU GPURenderBundleEncoderDescriptor
.
Fields§
§format: TextureFormat
Format of the attachment.
depth_read_only: bool
If the depth aspect of the depth stencil attachment is going to be written to.
This must match the RenderPassDepthStencilAttachment::depth_ops
of the renderpass this render bundle is executed in.
If depth_ops is Some(..)
this must be false. If it is None
this must be true.
stencil_read_only: bool
If the stencil aspect of the depth stencil attachment is going to be written to.
This must match the RenderPassDepthStencilAttachment::stencil_ops
of the renderpass this render bundle is executed in.
If depth_ops is Some(..)
this must be false. If it is None
this must be true.
Trait Implementations§
§impl Clone for RenderBundleDepthStencil
impl Clone for RenderBundleDepthStencil
§fn clone(&self) -> RenderBundleDepthStencil
fn clone(&self) -> RenderBundleDepthStencil
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for RenderBundleDepthStencil
impl Debug for RenderBundleDepthStencil
§impl<'de> Deserialize<'de> for RenderBundleDepthStencil
impl<'de> Deserialize<'de> for RenderBundleDepthStencil
§fn deserialize<__D>(
__deserializer: __D
) -> Result<RenderBundleDepthStencil, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<RenderBundleDepthStencil, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Hash for RenderBundleDepthStencil
impl Hash for RenderBundleDepthStencil
§impl PartialEq for RenderBundleDepthStencil
impl PartialEq for RenderBundleDepthStencil
§fn eq(&self, other: &RenderBundleDepthStencil) -> bool
fn eq(&self, other: &RenderBundleDepthStencil) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl Serialize for RenderBundleDepthStencil
impl Serialize for RenderBundleDepthStencil
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for RenderBundleDepthStencil
impl Eq for RenderBundleDepthStencil
impl StructuralEq for RenderBundleDepthStencil
impl StructuralPartialEq for RenderBundleDepthStencil
Auto Trait Implementations§
impl RefUnwindSafe for RenderBundleDepthStencil
impl Send for RenderBundleDepthStencil
impl Sync for RenderBundleDepthStencil
impl Unpin for RenderBundleDepthStencil
impl UnwindSafe for RenderBundleDepthStencil
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more