Struct gfx_scene::Fragment [] [src]

pub struct Fragment<R: Resources, M> {
    pub material: M,
    pub slice: Slice<R>,
}

A fragment of an entity, contains a single draw call.

Fields

Fragment material.

Mesh slice.

Methods

impl<R: Resources, M> Fragment<R, M>
[src]

Create a new fragment.

Trait Implementations

impl<R: Clone + Resources, M: Clone> Clone for Fragment<R, M>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<R: Debug + Resources, M: Debug> Debug for Fragment<R, M>
[src]

Formats the value using the given formatter.