[][src]Struct makepad_render::ShaderGen

pub struct ShaderGen {
    pub log: i32,
    pub name: String,
    pub geometry_vertices: Vec<f32>,
    pub geometry_indices: Vec<u32>,
    pub asts: Vec<ShAst>,
}

Fields

log: i32name: Stringgeometry_vertices: Vec<f32>geometry_indices: Vec<u32>asts: Vec<ShAst>

Methods

impl ShaderGen[src]

pub fn new() -> Self[src]

pub fn compose(self, ast: ShAst) -> Self[src]

pub fn flat_vars<F>(&self, cb: F) -> Vec<ShVar> where
    F: Fn(&ShVarStore) -> bool
[src]

pub fn flat_consts(&self) -> Vec<ShConst>[src]

pub fn find_fn(&self, name: &str) -> Option<&ShFn>[src]

pub fn find_var(&self, name: &str) -> Option<&ShVar>[src]

pub fn find_const(&self, name: &str) -> Option<&ShConst>[src]

pub fn find_type(&self, name: &str) -> Option<&ShType>[src]

pub fn get_type_slots(&self, name: &str) -> usize[src]

pub fn compute_slot_total(&self, vars: &Vec<ShVar>) -> usize[src]

Trait Implementations

impl Clone for ShaderGen[src]

impl Default for ShaderGen[src]

impl Eq for ShaderGen[src]

impl PartialEq<ShaderGen> for ShaderGen[src]

impl Hash for ShaderGen[src]

impl StructuralPartialEq for ShaderGen[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]