Struct gfx_app::shade::Source [] [src]

pub struct Source<'a> {
    pub glsl_120: &'a [u8],
    pub glsl_130: &'a [u8],
    pub glsl_140: &'a [u8],
    pub glsl_150: &'a [u8],
    pub glsl_430: &'a [u8],
    pub glsl_es_100: &'a [u8],
    pub glsl_es_200: &'a [u8],
    pub glsl_es_300: &'a [u8],
    pub hlsl_30: &'a [u8],
    pub hlsl_40: &'a [u8],
    pub hlsl_41: &'a [u8],
    pub hlsl_50: &'a [u8],
}

A type storing shader source for different graphics APIs and versions.

Fields

Methods

impl<'a> Source<'a>
[src]

Create an empty shader source. Useful for specifying the remaining structure members upon construction.

Pick one of the stored versions that is the highest supported by the backend.

Trait Implementations

impl<'a> Copy for Source<'a>
[src]

impl<'a> Clone for Source<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> PartialEq for Source<'a>
[src]

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

This method tests for !=.

impl<'a> Debug for Source<'a>
[src]

Formats the value using the given formatter.