pub struct VertexBufferCommon<T, I = InstanceRate>(/* private fields */);Expand description
Service struct to simplify the implementations of VertexBuffer and InstanceBuffer.
Trait Implementations§
Source§impl<T, I> Clone for VertexBufferCommon<T, I>
impl<T, I> Clone for VertexBufferCommon<T, I>
Source§impl<R: Resources, T, I> DataBind<R> for VertexBufferCommon<T, I>
impl<R: Resources, T, I> DataBind<R> for VertexBufferCommon<T, I>
Source§impl<'a, T: Structure<Format>, I: ToInstanceRate + 'a> DataLink<'a> for VertexBufferCommon<T, I>
impl<'a, T: Structure<Format>, I: ToInstanceRate + 'a> DataLink<'a> for VertexBufferCommon<T, I>
Source§type Init = <I as ToInstanceRate>::Init
type Init = <I as ToInstanceRate>::Init
The assotiated “init” type - a member of the PSO “init” struct.
Source§fn link_vertex_buffer(
&mut self,
index: BufferIndex,
init: &Self::Init,
) -> Option<VertexBufferDesc>
fn link_vertex_buffer( &mut self, index: BufferIndex, init: &Self::Init, ) -> Option<VertexBufferDesc>
Attempt to link with a vertex buffer containing multiple attributes.
Source§fn link_input(
&mut self,
at: &AttributeVar,
_: &Self::Init,
) -> Option<Result<AttributeDesc, Format>>
fn link_input( &mut self, at: &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_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, I> Debug for VertexBufferCommon<T, I>
impl<T, I> Debug for VertexBufferCommon<T, I>
Source§impl<T, I> Hash for VertexBufferCommon<T, I>
impl<T, I> Hash for VertexBufferCommon<T, I>
Source§impl<T, I> PartialEq for VertexBufferCommon<T, I>
impl<T, I> PartialEq for VertexBufferCommon<T, I>
impl<T, I> Eq for VertexBufferCommon<T, I>
Auto Trait Implementations§
impl<T, I> Freeze for VertexBufferCommon<T, I>
impl<T, I> RefUnwindSafe for VertexBufferCommon<T, I>where
T: RefUnwindSafe,
I: RefUnwindSafe,
impl<T, I> Send for VertexBufferCommon<T, I>
impl<T, I> Sync for VertexBufferCommon<T, I>
impl<T, I> Unpin for VertexBufferCommon<T, I>
impl<T, I> UnwindSafe for VertexBufferCommon<T, I>where
T: UnwindSafe,
I: 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