pub struct DepthStencilTarget<T>(/* private fields */);
Expand description
Depth + stencil target component.
- init: (
Depth
= depth state,Stencil
= stencil state) - data: (
DepthStencilView<T>
,(front, back)
= stencil reference values)
Trait Implementations§
Source§impl<T> Clone for DepthStencilTarget<T>
impl<T> Clone for DepthStencilTarget<T>
Source§impl<R: Resources, T> DataBind<R> for DepthStencilTarget<T>
impl<R: Resources, T> DataBind<R> for DepthStencilTarget<T>
Source§type Data = (DepthStencilView<R, T>, (u8, u8))
type Data = (DepthStencilView<R, T>, (u8, u8))
The associated “data” type - a member of the PSO “data” struct.
Source§fn bind_to(
&self,
out: &mut RawDataSet<R>,
data: &Self::Data,
man: &mut Manager<R>,
_: &mut AccessInfo<R>,
)
fn bind_to( &self, out: &mut RawDataSet<R>, data: &Self::Data, man: &mut Manager<R>, _: &mut AccessInfo<R>, )
Dump the given data into the raw data set.
Source§impl<'a, T: DepthStencilFormat> DataLink<'a> for DepthStencilTarget<T>
impl<'a, T: DepthStencilFormat> DataLink<'a> for DepthStencilTarget<T>
Source§fn link_depth_stencil(&mut self, init: &Self::Init) -> Option<DepthStencilDesc>
fn link_depth_stencil(&mut self, init: &Self::Init) -> Option<DepthStencilDesc>
Attempt to link with a depth-stencil target (DSV).
Source§fn link_vertex_buffer(
&mut self,
_: BufferIndex,
_: &Self::Init,
) -> Option<VertexBufferDesc>
fn link_vertex_buffer( &mut self, _: BufferIndex, _: &Self::Init, ) -> Option<VertexBufferDesc>
Attempt to link with a vertex buffer containing multiple attributes.
Source§fn link_input(
&mut self,
_: &AttributeVar,
_: &Self::Init,
) -> Option<Result<AttributeDesc, Format>>
fn link_input( &mut self, _: &AttributeVar, _: &Self::Init, ) -> Option<Result<AttributeDesc, Format>>
Attempt to link with a vertex attribute.
Source§fn link_constant_buffer<'b>(
&mut self,
_: &'b ConstantBufferVar,
_: &Self::Init,
) -> Option<Result<ConstantBufferDesc, ElementError<&'b str>>>
fn link_constant_buffer<'b>( &mut self, _: &'b ConstantBufferVar, _: &Self::Init, ) -> Option<Result<ConstantBufferDesc, ElementError<&'b str>>>
Attempt to link with a constant buffer.
Source§fn link_global_constant(
&mut self,
_: &ConstVar,
_: &Self::Init,
) -> Option<Result<(), CompatibilityError>>
fn link_global_constant( &mut self, _: &ConstVar, _: &Self::Init, ) -> Option<Result<(), CompatibilityError>>
Attempt to link with a global constant.
Source§fn link_output(
&mut self,
_: &OutputVar,
_: &Self::Init,
) -> Option<Result<ColorTargetDesc, Format>>
fn link_output( &mut self, _: &OutputVar, _: &Self::Init, ) -> Option<Result<ColorTargetDesc, Format>>
Attempt to link with an output render target (RTV).
Source§fn link_resource_view(
&mut self,
_: &TextureVar,
_: &Self::Init,
) -> Option<Result<ResourceViewDesc, Format>>
fn link_resource_view( &mut self, _: &TextureVar, _: &Self::Init, ) -> Option<Result<ResourceViewDesc, Format>>
Attempt to link with a shader resource (SRV).
Source§fn link_unordered_view(
&mut self,
_: &UnorderedVar,
_: &Self::Init,
) -> Option<Result<UnorderedViewDesc, Format>>
fn link_unordered_view( &mut self, _: &UnorderedVar, _: &Self::Init, ) -> Option<Result<UnorderedViewDesc, Format>>
Attempt to link with an unordered access (UAV).
Source§fn link_sampler(
&mut self,
_: &SamplerVar,
_: &Self::Init,
) -> Option<SamplerDesc>
fn link_sampler( &mut self, _: &SamplerVar, _: &Self::Init, ) -> Option<SamplerDesc>
Attempt to link with a sampler.
Source§fn link_scissor(&mut self) -> bool
fn link_scissor(&mut self) -> bool
Attempt to enable scissor test.
Source§impl<T> Debug for DepthStencilTarget<T>
impl<T> Debug for DepthStencilTarget<T>
Source§impl<T> Hash for DepthStencilTarget<T>
impl<T> Hash for DepthStencilTarget<T>
Source§impl<T> PartialEq for DepthStencilTarget<T>
impl<T> PartialEq for DepthStencilTarget<T>
impl<T> Eq for DepthStencilTarget<T>
Auto Trait Implementations§
impl<T> Freeze for DepthStencilTarget<T>
impl<T> RefUnwindSafe for DepthStencilTarget<T>where
T: RefUnwindSafe,
impl<T> Send for DepthStencilTarget<T>where
T: Send,
impl<T> Sync for DepthStencilTarget<T>where
T: Sync,
impl<T> Unpin for DepthStencilTarget<T>where
T: Unpin,
impl<T> UnwindSafe for DepthStencilTarget<T>where
T: UnwindSafe,
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