[−][src]Struct luminance::tess::TessView
A view into a GPU tessellation.
Implementations
impl<'a, B: ?Sized, V, I, W, S> TessView<'a, B, V, I, W, S> where
B: TessBackend<V, I, W, S>,
V: TessVertexData<S>,
I: TessIndex,
W: TessVertexData<S>,
S: ?Sized,
[src]
B: TessBackend<V, I, W, S>,
V: TessVertexData<S>,
I: TessIndex,
W: TessVertexData<S>,
S: ?Sized,
pub fn whole(tess: &'a Tess<B, V, I, W, S>) -> Self
[src]
Create a view that is using the whole input Tess
.
pub fn inst_whole(tess: &'a Tess<B, V, I, W, S>, inst_nb: usize) -> Self
[src]
Create a view that is using the whole input Tess
with inst_nb
instances.
pub fn sub(
tess: &'a Tess<B, V, I, W, S>,
vert_nb: usize
) -> Result<Self, TessViewError>
[src]
tess: &'a Tess<B, V, I, W, S>,
vert_nb: usize
) -> Result<Self, TessViewError>
Create a view that is using only a subpart of the input Tess
, starting from the beginning
of the vertices.
pub fn inst_sub(
tess: &'a Tess<B, V, I, W, S>,
vert_nb: usize,
inst_nb: usize
) -> Result<Self, TessViewError>
[src]
tess: &'a Tess<B, V, I, W, S>,
vert_nb: usize,
inst_nb: usize
) -> Result<Self, TessViewError>
Create a view that is using only a subpart of the input Tess
, starting from the beginning
of the vertices, with inst_nb
instances.
pub fn slice(
tess: &'a Tess<B, V, I, W, S>,
start: usize,
nb: usize
) -> Result<Self, TessViewError>
[src]
tess: &'a Tess<B, V, I, W, S>,
start: usize,
nb: usize
) -> Result<Self, TessViewError>
Create a view that is using only a subpart of the input Tess
, starting from start
, with
nb
vertices.
pub fn inst_slice(
tess: &'a Tess<B, V, I, W, S>,
start: usize,
nb: usize,
inst_nb: usize
) -> Result<Self, TessViewError>
[src]
tess: &'a Tess<B, V, I, W, S>,
start: usize,
nb: usize,
inst_nb: usize
) -> Result<Self, TessViewError>
Create a view that is using only a subpart of the input Tess
, starting from start
, with
nb
vertices and inst_nb
instances.
Trait Implementations
impl<'a, B: Clone + ?Sized, V: Clone, I: Clone, W: Clone, S> Clone for TessView<'a, B, V, I, W, S> where
B: TessBackend<V, I, W, S>,
V: TessVertexData<S>,
I: TessIndex,
W: TessVertexData<S>,
S: Clone + ?Sized,
[src]
B: TessBackend<V, I, W, S>,
V: TessVertexData<S>,
I: TessIndex,
W: TessVertexData<S>,
S: Clone + ?Sized,
pub fn clone(&self) -> TessView<'a, B, V, I, W, S>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, B: ?Sized, V, I, W, S> From<&'a Tess<B, V, I, W, S>> for TessView<'a, B, V, I, W, S> where
B: TessBackend<V, I, W, S>,
V: TessVertexData<S>,
I: TessIndex,
W: TessVertexData<S>,
S: ?Sized,
[src]
B: TessBackend<V, I, W, S>,
V: TessVertexData<S>,
I: TessIndex,
W: TessVertexData<S>,
S: ?Sized,
Auto Trait Implementations
impl<'a, B: ?Sized, V, I, W, S: ?Sized> RefUnwindSafe for TessView<'a, B, V, I, W, S> where
S: RefUnwindSafe,
<B as Tess<V, I, W, S>>::TessRepr: RefUnwindSafe,
[src]
S: RefUnwindSafe,
<B as Tess<V, I, W, S>>::TessRepr: RefUnwindSafe,
impl<'a, B, V, I, W, S> !Send for TessView<'a, B, V, I, W, S>
[src]
impl<'a, B, V, I, W, S> !Sync for TessView<'a, B, V, I, W, S>
[src]
impl<'a, B: ?Sized, V, I, W, S: ?Sized> Unpin for TessView<'a, B, V, I, W, S>
[src]
impl<'a, B: ?Sized, V, I, W, S: ?Sized> UnwindSafe for TessView<'a, B, V, I, W, S> where
S: RefUnwindSafe,
<B as Tess<V, I, W, S>>::TessRepr: RefUnwindSafe,
[src]
S: RefUnwindSafe,
<B as Tess<V, I, W, S>>::TessRepr: RefUnwindSafe,
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>,