Struct tea::glsl::GlslVariable
source · pub struct GlslVariable { /* private fields */ }Implementations§
source§impl GlslVariable
impl GlslVariable
pub fn new<T: GlslType>(qualifier: GlslQualifier, name: &str) -> GlslVariable
pub fn new_const<T: GlslType>(name: &str) -> GlslVariable
pub fn new_input<T: GlslType>(name: &str) -> GlslVariable
pub fn new_output<T: GlslType>(name: &str) -> GlslVariable
pub fn new_uniform<T: GlslType>(name: &str) -> GlslVariable
pub fn set_size(&mut self, size: u32)
Trait Implementations§
source§impl Clone for GlslVariable
impl Clone for GlslVariable
source§fn clone(&self) -> GlslVariable
fn clone(&self) -> GlslVariable
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 GlslVariable
impl Debug for GlslVariable
source§impl Default for GlslVariable
impl Default for GlslVariable
source§fn default() -> GlslVariable
fn default() -> GlslVariable
Returns the “default value” for a type. Read more
source§impl PartialEq<GlslVariable> for GlslVariable
impl PartialEq<GlslVariable> for GlslVariable
source§fn eq(&self, other: &GlslVariable) -> bool
fn eq(&self, other: &GlslVariable) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl ToString for GlslVariable
impl ToString for GlslVariable
impl Eq for GlslVariable
impl StructuralEq for GlslVariable
impl StructuralPartialEq for GlslVariable
Auto Trait Implementations§
impl RefUnwindSafe for GlslVariable
impl Send for GlslVariable
impl Sync for GlslVariable
impl Unpin for GlslVariable
impl UnwindSafe for GlslVariable
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