Struct makepad_shader_compiler::shader_ast::DrawShaderDef
source · [−]pub struct DrawShaderDef {
pub flags: DrawShaderFlags,
pub fields: Vec<DrawShaderFieldDef>,
pub methods: Vec<FnPtr>,
pub enums: Vec<LiveType>,
pub all_live_refs: RefCell<BTreeMap<ValuePtr, Ty>>,
pub all_fns: RefCell<Vec<FnPtr>>,
pub vertex_fns: RefCell<Vec<FnPtr>>,
pub pixel_fns: RefCell<Vec<FnPtr>>,
pub all_structs: RefCell<Vec<StructPtr>>,
pub vertex_structs: RefCell<Vec<StructPtr>>,
pub pixel_structs: RefCell<Vec<StructPtr>>,
}
Fields
flags: DrawShaderFlags
fields: Vec<DrawShaderFieldDef>
methods: Vec<FnPtr>
enums: Vec<LiveType>
all_live_refs: RefCell<BTreeMap<ValuePtr, Ty>>
all_fns: RefCell<Vec<FnPtr>>
vertex_fns: RefCell<Vec<FnPtr>>
pixel_fns: RefCell<Vec<FnPtr>>
all_structs: RefCell<Vec<StructPtr>>
vertex_structs: RefCell<Vec<StructPtr>>
pixel_structs: RefCell<Vec<StructPtr>>
Implementations
sourceimpl DrawShaderDef
impl DrawShaderDef
pub fn find_field(&self, ident: Ident) -> Option<&DrawShaderFieldDef>
pub fn fields_as_uniform_blocks(&self) -> BTreeMap<Ident, Vec<(usize, Ident)>>
pub fn add_uniform(&mut self, id: LiveId, block: LiveId, ty: Ty, span: TokenSpan)
pub fn add_instance(
&mut self,
id: LiveId,
ty: Ty,
span: TokenSpan,
live_field_kind: LiveFieldKind
)
pub fn add_geometry(&mut self, id: LiveId, ty: Ty, span: TokenSpan)
pub fn add_texture(&mut self, id: LiveId, ty: Ty, span: TokenSpan)
Trait Implementations
sourceimpl Clone for DrawShaderDef
impl Clone for DrawShaderDef
sourcefn clone(&self) -> DrawShaderDef
fn clone(&self) -> DrawShaderDef
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DrawShaderDef
impl Debug for DrawShaderDef
sourceimpl Default for DrawShaderDef
impl Default for DrawShaderDef
sourcefn default() -> DrawShaderDef
fn default() -> DrawShaderDef
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for DrawShaderDef
impl !Send for DrawShaderDef
impl !Sync for DrawShaderDef
impl Unpin for DrawShaderDef
impl UnwindSafe for DrawShaderDef
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more