[−][src]Struct makepad_render::ShaderGen
Fields
log: i32
name: String
geometry_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]
F: Fn(&ShVarStore) -> bool,
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]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl StructuralPartialEq for ShaderGen
[src]
Auto Trait Implementations
impl Send for ShaderGen
impl Sync for ShaderGen
impl Unpin for ShaderGen
impl UnwindSafe for ShaderGen
impl RefUnwindSafe for ShaderGen
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,