Struct gfx::pso::resource::RawShaderResource
source · pub struct RawShaderResource(_);
Expand description
Raw (untyped) shader resource (SRV).
- init:
&str
= name of the resource. This may change in the future. - data:
RawShaderResourceView
Trait Implementations§
source§impl Clone for RawShaderResource
impl Clone for RawShaderResource
source§fn clone(&self) -> RawShaderResource
fn clone(&self) -> RawShaderResource
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 moresource§impl<R: Resources> DataBind<R> for RawShaderResource
impl<R: Resources> DataBind<R> for RawShaderResource
§type Data = RawShaderResourceView<R>
type Data = RawShaderResourceView<R>
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> DataLink<'a> for RawShaderResource
impl<'a> DataLink<'a> for RawShaderResource
source§fn link_resource_view(
&mut self,
var: &TextureVar,
init: &Self::Init
) -> Option<Result<ResourceViewDesc, Format>>
fn link_resource_view( &mut self, var: &TextureVar, init: &Self::Init ) -> Option<Result<ResourceViewDesc, Format>>
Attempt to link with a shader resource (SRV).
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_depth_stencil(&mut self, _: &Self::Init) -> Option<DepthStencilDesc>
fn link_depth_stencil(&mut self, _: &Self::Init) -> Option<DepthStencilDesc>
Attempt to link with a depth-stencil target (DSV).
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 Debug for RawShaderResource
impl Debug for RawShaderResource
source§impl Hash for RawShaderResource
impl Hash for RawShaderResource
source§impl PartialEq<RawShaderResource> for RawShaderResource
impl PartialEq<RawShaderResource> for RawShaderResource
source§fn eq(&self, other: &RawShaderResource) -> bool
fn eq(&self, other: &RawShaderResource) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.