Struct gfx::pso::buffer::VertexBufferCommon [−][src]
pub struct VertexBufferCommon<T, I = InstanceRate>(_, _);
Service struct to simplify the implementations of VertexBuffer
and InstanceBuffer
.
Trait Implementations
impl<T, I> Clone for VertexBufferCommon<T, I>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<R: Resources, T, I> DataBind<R> for VertexBufferCommon<T, I>
[src]
type Data = Buffer<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>,
access: &mut AccessInfo<R>
)
[src]
&self,
out: &mut RawDataSet<R>,
data: &Self::Data,
man: &mut Manager<R>,
access: &mut AccessInfo<R>
)
impl<'a, T: Structure<Format>, I: ToInstanceRate + 'a> DataLink<'a> for VertexBufferCommon<T, I>
[src]
type Init = I::Init
The assotiated “init” type - a member of the PSO “init” struct.
fn new() -> Self
[src]
fn is_active(&self) -> bool
[src]
fn link_vertex_buffer(
&mut self,
index: BufferIndex,
init: &Self::Init
) -> Option<VertexBufferDesc>
[src]
&mut self,
index: BufferIndex,
init: &Self::Init
) -> Option<VertexBufferDesc>
fn link_input(
&mut self,
at: &AttributeVar,
_: &Self::Init
) -> Option<Result<AttributeDesc, Format>>
[src]
&mut self,
at: &AttributeVar,
_: &Self::Init
) -> Option<Result<AttributeDesc, Format>>
fn link_constant_buffer<'b>(
&mut self,
_: &'b ConstantBufferVar,
_: &Self::Init
) -> Option<Result<ConstantBufferDesc, ElementError<&'b str>>>
[src]
&mut self,
_: &'b ConstantBufferVar,
_: &Self::Init
) -> Option<Result<ConstantBufferDesc, ElementError<&'b str>>>
fn link_global_constant(
&mut self,
_: &ConstVar,
_: &Self::Init
) -> Option<Result<(), CompatibilityError>>
[src]
&mut self,
_: &ConstVar,
_: &Self::Init
) -> Option<Result<(), CompatibilityError>>
fn link_output(
&mut self,
_: &OutputVar,
_: &Self::Init
) -> Option<Result<ColorTargetDesc, Format>>
[src]
&mut self,
_: &OutputVar,
_: &Self::Init
) -> Option<Result<ColorTargetDesc, Format>>
fn link_depth_stencil(&mut self, _: &Self::Init) -> Option<DepthStencilDesc>
[src]
fn link_resource_view(
&mut self,
_: &TextureVar,
_: &Self::Init
) -> Option<Result<ResourceViewDesc, Format>>
[src]
&mut self,
_: &TextureVar,
_: &Self::Init
) -> Option<Result<ResourceViewDesc, Format>>
fn link_unordered_view(
&mut self,
_: &UnorderedVar,
_: &Self::Init
) -> Option<Result<UnorderedViewDesc, Format>>
[src]
&mut self,
_: &UnorderedVar,
_: &Self::Init
) -> Option<Result<UnorderedViewDesc, Format>>
fn link_sampler(
&mut self,
_: &SamplerVar,
_: &Self::Init
) -> Option<SamplerDesc>
[src]
&mut self,
_: &SamplerVar,
_: &Self::Init
) -> Option<SamplerDesc>
fn link_scissor(&mut self) -> bool
[src]
impl<T, I> Debug for VertexBufferCommon<T, I>
[src]
impl<T, I> Eq for VertexBufferCommon<T, I>
[src]
impl<T, I> Hash for VertexBufferCommon<T, I>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T, I> PartialEq<VertexBufferCommon<T, I>> for VertexBufferCommon<T, I>
[src]
Auto Trait Implementations
impl<T, I> RefUnwindSafe for VertexBufferCommon<T, I> where
I: RefUnwindSafe,
T: RefUnwindSafe,
I: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, I> Send for VertexBufferCommon<T, I> where
I: Send,
T: Send,
I: Send,
T: Send,
impl<T, I> Sync for VertexBufferCommon<T, I> where
I: Sync,
T: Sync,
I: Sync,
T: Sync,
impl<T, I> Unpin for VertexBufferCommon<T, I> where
I: Unpin,
T: Unpin,
I: Unpin,
T: Unpin,
impl<T, I> UnwindSafe for VertexBufferCommon<T, I> where
I: UnwindSafe,
T: UnwindSafe,
I: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,