Struct cheddar::Module[][src]

pub struct Module {
    pub imports: Vec<ImportList>,
    pub glsl: GLSL,
}

A module.

A module has a list of imports and a list of GLSL extern declaration.

Fields

List of imports for this module.

The GLSL body of the module.

Methods

impl Module
[src]

Shrink a module along with its imports to yield a bigger module with no import. Return all the visited modules (including the current one).

This is needed whenever the module must be compiled to strings (i.e. Module::to_glsl_setup).

Fold a module into its GLSL setup.

Trait Implementations

impl Clone for Module
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Module
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Module
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<C> Load<C> for Module
[src]

Type of the key used to load the resource.

Type of error that might happen while loading.

Load a resource. Read more

Function called when a resource must be reloaded. Read more

Auto Trait Implementations

impl Send for Module

impl Sync for Module