pub struct Material { /* private fields */ }
Available on crate feature mtrl only.
Expand description

A material. Contains metadata to be used by shaders, and references to the shader and requisite assets used by the material.

Implementations

Version of the material structure.

Name of the shader file or package used by this material.

Texture samplers used by the material.

Trait Implementations

Formats the value using the given formatter. Read more
Build an instance of this file from the raw byte representation.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.