Struct makepad_widgets::shader::std::makepad_shader_compiler::DrawShaderDef
pub struct DrawShaderDef {
pub flags: DrawShaderFlags,
pub fields: Vec<DrawShaderFieldDef, Global>,
pub methods: Vec<FnPtr, Global>,
pub enums: Vec<TypeId, Global>,
pub all_live_refs: RefCell<BTreeMap<ValuePtr, ShaderTy, Global>>,
pub all_fns: RefCell<Vec<FnPtr, Global>>,
pub vertex_fns: RefCell<Vec<FnPtr, Global>>,
pub pixel_fns: RefCell<Vec<FnPtr, Global>>,
pub all_structs: RefCell<Vec<StructPtr, Global>>,
pub vertex_structs: RefCell<Vec<StructPtr, Global>>,
pub pixel_structs: RefCell<Vec<StructPtr, Global>>,
}
Fields§
§flags: DrawShaderFlags
§fields: Vec<DrawShaderFieldDef, Global>
§methods: Vec<FnPtr, Global>
§enums: Vec<TypeId, Global>
§all_live_refs: RefCell<BTreeMap<ValuePtr, ShaderTy, Global>>
§all_fns: RefCell<Vec<FnPtr, Global>>
§vertex_fns: RefCell<Vec<FnPtr, Global>>
§pixel_fns: RefCell<Vec<FnPtr, Global>>
§all_structs: RefCell<Vec<StructPtr, Global>>
§vertex_structs: RefCell<Vec<StructPtr, Global>>
§pixel_structs: RefCell<Vec<StructPtr, Global>>
Implementations§
§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), Global>, Global>
pub fn add_uniform( &mut self, id: LiveId, block: LiveId, ty: ShaderTy, span: TokenSpan )
pub fn add_instance( &mut self, id: LiveId, ty: ShaderTy, span: TokenSpan, live_field_kind: LiveFieldKind )
pub fn add_geometry(&mut self, id: LiveId, ty: ShaderTy, span: TokenSpan)
pub fn add_texture(&mut self, id: LiveId, ty: ShaderTy, span: TokenSpan)
Trait Implementations§
§impl Clone for DrawShaderDef
impl Clone for DrawShaderDef
§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 more§impl Debug for DrawShaderDef
impl Debug for DrawShaderDef
§impl Default for DrawShaderDef
impl Default for DrawShaderDef
§fn 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§
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