Struct gfx::pso::target::RenderTarget
[−]
[src]
pub struct RenderTarget<T>(_, _);
Render target component. Typically points to a color-formatted texture.
- init:
&str
= name of the target - data:
RenderTargetView<T>
Trait Implementations
impl<'a, T: RenderFormat> DataLink<'a> for RenderTarget<T>
[src]
type Init = &'a str
The assotiated "init" type - a member of the PSO "init" struct.
fn new() -> Self
Create a new empty data link.
fn is_active(&self) -> bool
Check if this link is actually used by the shader.
fn link_output(
&mut self,
out: &OutputVar,
init: &Self::Init
) -> Option<Result<ColorTargetDesc, Format>>
&mut self,
out: &OutputVar,
init: &Self::Init
) -> Option<Result<ColorTargetDesc, Format>>
Attempt to link with an output render target (RTV).
fn link_vertex_buffer(
&mut self,
_: BufferIndex,
_: &Self::Init
) -> Option<VertexBufferDesc>
&mut self,
_: BufferIndex,
_: &Self::Init
) -> Option<VertexBufferDesc>
Attempt to link with a vertex buffer containing multiple attributes.
fn link_input(
&mut self,
_: &AttributeVar,
_: &Self::Init
) -> Option<Result<AttributeDesc, Format>>
&mut self,
_: &AttributeVar,
_: &Self::Init
) -> Option<Result<AttributeDesc, Format>>
Attempt to link with a vertex attribute.
fn link_constant_buffer<'b>(
&mut self,
_: &'b ConstantBufferVar,
_: &Self::Init
) -> Option<Result<ConstantBufferDesc, ElementError<&'b str>>>
&mut self,
_: &'b ConstantBufferVar,
_: &Self::Init
) -> Option<Result<ConstantBufferDesc, ElementError<&'b str>>>
Attempt to link with a constant buffer.
fn link_global_constant(
&mut self,
_: &ConstVar,
_: &Self::Init
) -> Option<Result<(), UniformValue>>
&mut self,
_: &ConstVar,
_: &Self::Init
) -> Option<Result<(), UniformValue>>
Attempt to link with a global constant.
fn link_depth_stencil(&mut self, _: &Self::Init) -> Option<DepthStencilDesc>
Attempt to link with a depth-stencil target (DSV).
fn link_resource_view(
&mut self,
_: &TextureVar,
_: &Self::Init
) -> Option<Result<ResourceViewDesc, Format>>
&mut self,
_: &TextureVar,
_: &Self::Init
) -> Option<Result<ResourceViewDesc, Format>>
Attempt to link with a shader resource (SRV).
fn link_unordered_view(
&mut self,
_: &UnorderedVar,
_: &Self::Init
) -> Option<Result<UnorderedViewDesc, Format>>
&mut self,
_: &UnorderedVar,
_: &Self::Init
) -> Option<Result<UnorderedViewDesc, Format>>
Attempt to link with an unordered access (UAV).
fn link_sampler(
&mut self,
_: &SamplerVar,
_: &Self::Init
) -> Option<SamplerDesc>
&mut self,
_: &SamplerVar,
_: &Self::Init
) -> Option<SamplerDesc>
Attempt to link with a sampler.
fn link_scissor(&mut self) -> bool
Attempt to enable scissor test.
impl<R: Resources, T> DataBind<R> for RenderTarget<T>
[src]
type Data = RenderTargetView<R, T>
The associated "data" type - a member of the PSO "data" struct.
fn bind_to(
&self,
out: &mut RawDataSet<R>,
data: &Self::Data,
man: &mut Manager<R>,
_: &mut AccessInfo<R>
)
&self,
out: &mut RawDataSet<R>,
data: &Self::Data,
man: &mut Manager<R>,
_: &mut AccessInfo<R>
)
Dump the given data into the raw data set.