Struct gfx::pso::resource::RawShaderResource
[−]
[src]
pub struct RawShaderResource(_);
Raw (untyped) shader resource (SRV).
- init:
&str
= name of the resource. This may change in the future. - data:
RawShaderResourceView
Trait Implementations
impl<'a> DataLink<'a> for RawShaderResource
[src]
type Init = &'a str
The assotiated "init" type - a member of the PSO "init" struct.
fn new() -> Self
[src]
Create a new empty data link.
fn is_active(&self) -> bool
[src]
Check if this link is actually used by the shader.
fn link_resource_view(
&mut self,
var: &TextureVar,
init: &Self::Init
) -> Option<Result<(), Format>>
[src]
&mut self,
var: &TextureVar,
init: &Self::Init
) -> Option<Result<(), Format>>
Attempt to link with a shader resource (SRV).
fn link_input(
&mut self,
_: &AttributeVar,
_: &Self::Init
) -> Option<Result<AttributeDesc, Format>>
[src]
&mut self,
_: &AttributeVar,
_: &Self::Init
) -> Option<Result<AttributeDesc, Format>>
Attempt to link with a vertex attribute.
fn link_constant_buffer(
&mut self,
_: &ConstantBufferVar,
_: &Self::Init
) -> Option<Result<(), ConstFormat>>
[src]
&mut self,
_: &ConstantBufferVar,
_: &Self::Init
) -> Option<Result<(), ConstFormat>>
Attempt to link with a constant buffer.
fn link_global_constant(
&mut self,
_: &ConstVar,
_: &Self::Init
) -> Option<Result<(), UniformValue>>
[src]
&mut self,
_: &ConstVar,
_: &Self::Init
) -> Option<Result<(), UniformValue>>
Attempt to link with a global constant.
fn link_output(
&mut self,
_: &OutputVar,
_: &Self::Init
) -> Option<Result<ColorTargetDesc, Format>>
[src]
&mut self,
_: &OutputVar,
_: &Self::Init
) -> Option<Result<ColorTargetDesc, Format>>
Attempt to link with an output render target (RTV).
fn link_depth_stencil(&mut self, _: &Self::Init) -> Option<DepthStencilDesc>
[src]
Attempt to link with a depth-stencil target (DSV).
fn link_unordered_view(
&mut self,
_: &UnorderedVar,
_: &Self::Init
) -> Option<Result<(), Format>>
[src]
&mut self,
_: &UnorderedVar,
_: &Self::Init
) -> Option<Result<(), Format>>
Attempt to link with an unordered access (UAV).
fn link_sampler(&mut self, _: &SamplerVar, _: &Self::Init) -> Option<()>
[src]
Attempt to link with a sampler.
fn link_scissor(&mut self) -> bool
[src]
Attempt to enable scissor test.
impl<R: Resources> DataBind<R> for RawShaderResource
[src]
type Data = RawShaderResourceView<R>
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>
)
[src]
&self,
out: &mut RawDataSet<R>,
data: &Self::Data,
man: &mut Manager<R>
)
Dump the given data into the raw data set.