pub struct Shader { /* private fields */ }
Expand description
A resource representing a fragment shader that can be used when drawing
Trait Implementations§
Source§impl DataObject for Shader
impl DataObject for Shader
Source§fn folder_name() -> &'static strwhere
Self: Sized,
fn folder_name() -> &'static strwhere
Self: Sized,
The folder name that DataObjects of this type are stored in
Source§fn trust_policy() -> TrustPolicy
fn trust_policy() -> TrustPolicy
The TrustPolicy for this resource type, which determines what sources are allowed to load it.
Source§fn want_file(pathname: &str) -> boolwhere
Self: Sized,
fn want_file(pathname: &str) -> boolwhere
Self: Sized,
Determines whether or not a given file should be loaded while iterating through a package.
Source§fn from_package_source(
source: &mut Box<dyn Source>,
package_name: &str,
pathname: &str,
) -> Result<Self, DataError>where
Self: Sized,
fn from_package_source(
source: &mut Box<dyn Source>,
package_name: &str,
pathname: &str,
) -> Result<Self, DataError>where
Self: Sized,
A constructor that returns a new DataObject of this type given a path and a Source object.
Source§fn write(
&mut self,
package_name: &str,
pathname: &str,
source: &mut Box<dyn Source>,
) -> Result<(), DataError>
fn write( &mut self, package_name: &str, pathname: &str, source: &mut Box<dyn Source>, ) -> Result<(), DataError>
A function that writes the object to the given Source to save its data
Source§fn generation(&self) -> u64
fn generation(&self) -> u64
Implement this to support “generations” for detecting when the data for a given path is changed.
Source§fn set_generation(&mut self, generation: u64)
fn set_generation(&mut self, generation: u64)
Implement this to support “generations” for detecting when the data for a given path is changed.
Auto Trait Implementations§
impl Freeze for Shader
impl RefUnwindSafe for Shader
impl Send for Shader
impl Sync for Shader
impl Unpin for Shader
impl UnwindSafe for Shader
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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.