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

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

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

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

const INDEX_TYPE: Option<TessIndexType>

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.

Loading content...

Required methods

fn try_into_u32(self) -> Option<u32>

Get and convert the index to u32, if possible.

Loading content...

Implementations on Foreign Types

impl TessIndex for ()[src]

impl TessIndex for u8[src]

Boop.

impl TessIndex for u16[src]

Boop.

impl TessIndex for u32[src]

Wuuuuuuha.

Loading content...

Implementors

Loading content...