Struct luminance::tess::TessView [−][src]
pub struct TessView<'a, B: ?Sized, V, I, W, S> where
B: TessBackend<V, I, W, S>,
V: TessVertexData<S>,
I: TessIndex,
W: TessVertexData<S>,
S: ?Sized, { /* fields omitted */ }
Expand description
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,
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,
Create a view that is using the whole input Tess
.
Create a view that is using the whole input Tess
with inst_nb
instances.
Create a view that is using only a subpart of the input Tess
, starting from the beginning
of the vertices.
Create a view that is using only a subpart of the input Tess
, starting from the beginning
of the vertices, with inst_nb
instances.
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>
pub fn inst_slice(
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,
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,
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,
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,
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,
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,
Blanket Implementations
Mutably borrows from an owned value. Read more