Struct bevy_retrograde::core::luminance::tess::TessView [−]
pub struct TessView<'a, B, V, I, W, S> where
V: TessVertexData<S>,
S: ?Sized,
W: TessVertexData<S>,
I: TessIndex,
B: Tess<V, I, W, S> + ?Sized, { /* fields omitted */ }
Expand description
A view into a GPU tessellation.
Implementations
impl<'a, B, V, I, W, S> TessView<'a, B, V, I, W, S> where
V: TessVertexData<S>,
S: ?Sized,
W: TessVertexData<S>,
I: TessIndex,
B: Tess<V, I, W, S> + ?Sized,
impl<'a, B, V, I, W, S> TessView<'a, B, V, I, W, S> where
V: TessVertexData<S>,
S: ?Sized,
W: TessVertexData<S>,
I: TessIndex,
B: Tess<V, I, W, S> + ?Sized,
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
) -> TessView<'a, B, V, I, W, S>
pub fn inst_whole(
tess: &'a Tess<B, V, I, W, S>,
inst_nb: usize
) -> TessView<'a, B, V, I, W, S>
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<TessView<'a, B, V, I, W, S>, TessViewError>
pub fn inst_slice(
tess: &'a Tess<B, V, I, W, S>,
start: usize,
nb: usize,
inst_nb: usize
) -> Result<TessView<'a, B, V, I, W, S>, 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
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
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V