[][src]Struct luminance::tess::TessView

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 */ }

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]

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]

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]

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]

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]

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]

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]

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]

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]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.