Trait luminance::tess::TessIndex[][src]

pub unsafe trait TessIndex: Copy {
    const INDEX_TYPE: Option<TessIndexType>;

    fn try_into_u32(self) -> Option<u32>;
}
Expand description

Class of tessellation indices.

Values which types implement this trait are allowed to be used to index tessellation in indexed draw commands.

You shouldn’t have to worry too much about that trait. Have a look at the current implementors for an exhaustive list of types you can use.

Implementing this trait is unsafe.

Associated Constants

Type of the underlying index.

You are limited in which types you can use as indexes. Feel free to have a look at the documentation of the TessIndexType trait for further information.

None means that you disable indexing.

Required methods

Get and convert the index to u32, if possible.

Implementations on Foreign Types

Boop.

Boop.

Wuuuuuuha.

Implementors