Skip to main content

MeshDesc

Struct MeshDesc 

Source
pub struct MeshDesc<'a> {
Show 13 fields pub program: &'a Program, pub projection_variant: ProjectionVariant, pub extra_defines: &'a [&'a str], pub paint_attributes: Option<&'a PaintAttributes>, pub color_mode: ColorMode, pub cull_face_mode: CullFaceMode, pub draw_mode: DrawMode, pub vertex_bindings: &'a [VertexBinding<'a>], pub vertex_count: usize, pub instance_bindings: &'a [VertexBinding<'a>], pub indexes: &'a IndexBuffer, pub ranges: &'a [DrawRange], pub textures: &'a [Option<&'a Texture>],
}
Expand description

Descriptor passed to Resources::create_mesh.

Fields§

§program: &'a Program§projection_variant: ProjectionVariant§extra_defines: &'a [&'a str]§paint_attributes: Option<&'a PaintAttributes>§color_mode: ColorMode§cull_face_mode: CullFaceMode§draw_mode: DrawMode§vertex_bindings: &'a [VertexBinding<'a>]§vertex_count: usize§instance_bindings: &'a [VertexBinding<'a>]§indexes: &'a IndexBuffer§ranges: &'a [DrawRange]§textures: &'a [Option<&'a Texture>]

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for MeshDesc<'a>

§

impl<'a> !Send for MeshDesc<'a>

§

impl<'a> !Sync for MeshDesc<'a>

§

impl<'a> !UnwindSafe for MeshDesc<'a>

§

impl<'a> Forget for MeshDesc<'a>

§

impl<'a> Freeze for MeshDesc<'a>
where &'a Program: Freeze, &'a [&'a str]: Freeze, &'a PaintAttributes: Freeze, &'a [VertexBinding<'a>]: Freeze, &'a IndexBuffer: Freeze, &'a [DrawRange]: Freeze, &'a [Option<&'a Texture>]: Freeze,

§

impl<'a> Move for MeshDesc<'a>

§

impl<'a> Unpin for MeshDesc<'a>
where &'a Program: Unpin, &'a [&'a str]: Unpin, &'a PaintAttributes: Unpin, &'a [VertexBinding<'a>]: Unpin, &'a IndexBuffer: Unpin, &'a [DrawRange]: Unpin, &'a [Option<&'a Texture>]: Unpin,

§

impl<'a> UnsafeUnpin for MeshDesc<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.