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§
Source§impl 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§
Source§impl Clone for DrawShaderDef
impl Clone for DrawShaderDef
Source§fn clone(&self) -> DrawShaderDef
fn clone(&self) -> DrawShaderDef
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DrawShaderDef
impl Debug for DrawShaderDef
Source§impl Default for DrawShaderDef
impl Default for DrawShaderDef
Source§fn default() -> DrawShaderDef
fn default() -> DrawShaderDef
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for DrawShaderDef
impl !RefUnwindSafe for DrawShaderDef
impl !Send for DrawShaderDef
impl !Sync for DrawShaderDef
impl Unpin for DrawShaderDef
impl UnwindSafe for DrawShaderDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more