pub struct ComponentRenderUniform {
pub _data_dict_vf: HashMap<String, Vec<f32>>,
pub _data_dict_mat4f: HashMap<String, Vec<f32>>,
pub _data_dict_mat3f: HashMap<String, Vec<f32>>,
pub _data_uniform_group: HashMap<u64, Vec<String>>,
}
Fields§
§_data_dict_vf: HashMap<String, Vec<f32>>
§stores the uniforms values
_data_dict_mat4f: HashMap<String, Vec<f32>>
§_data_dict_mat3f: HashMap<String, Vec<f32>>
§_data_uniform_group: HashMap<u64, Vec<String>>
§this maps an id to multiple uniforms
Implementations§
Source§impl ComponentRenderUniform
impl ComponentRenderUniform
Sourcepub fn flush_into_uniform_collection(
&self,
shader_program: i64,
uc: &mut RenderUniformCollection,
) -> Result<(), &'static str>
pub fn flush_into_uniform_collection( &self, shader_program: i64, uc: &mut RenderUniformCollection, ) -> Result<(), &'static str>
§this dumps the data to uniform manager
Trait Implementations§
Source§impl Clone for ComponentRenderUniform
impl Clone for ComponentRenderUniform
Source§fn clone(&self) -> ComponentRenderUniform
fn clone(&self) -> ComponentRenderUniform
Returns a duplicate 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 Default for ComponentRenderUniform
impl Default for ComponentRenderUniform
Source§fn default() -> ComponentRenderUniform
fn default() -> ComponentRenderUniform
Returns the “default value” for a type. Read more
Source§impl IComponent for ComponentRenderUniform
impl IComponent for ComponentRenderUniform
Auto Trait Implementations§
impl Freeze for ComponentRenderUniform
impl RefUnwindSafe for ComponentRenderUniform
impl Send for ComponentRenderUniform
impl Sync for ComponentRenderUniform
impl Unpin for ComponentRenderUniform
impl UnwindSafe for ComponentRenderUniform
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IComponentClone for Twhere
T: 'static + IComponent + Clone,
impl<T> IComponentClone for Twhere
T: 'static + IComponent + Clone,
fn clone_box(&self) -> Box<dyn IComponent>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more