Struct skeletal_animation::skinned_renderer::SkinnedShaderParams
[−]
pub struct SkinnedShaderParams<R: Resources> { pub u_model_view_proj: [[f32; 4]; 4], pub u_model_view: [[f32; 4]; 4], pub u_skinning_transforms: RawBuffer<R>, pub u_texture: TextureParam<R>, pub _r: PhantomData<R>, }
Fields
u_model_view_proj: [[f32; 4]; 4]
u_model_view: [[f32; 4]; 4]
u_skinning_transforms: RawBuffer<R>
u_texture: TextureParam<R>
_r: PhantomData<R>
Trait Implementations
impl<R: Debug + Resources> Debug for SkinnedShaderParams<R>
impl<R: Clone + Resources> Clone for SkinnedShaderParams<R>
fn clone(&self) -> SkinnedShaderParams<R>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<R: Resources> ShaderParam for SkinnedShaderParams<R>
type Resources = R
type Link = ((Option<ParameterId>, PhantomData<[[f32; 4]; 4]>), (Option<ParameterId>, PhantomData<[[f32; 4]; 4]>), (Option<ParameterId>, PhantomData<RawBuffer<R>>), (Option<ParameterId>, PhantomData<TextureParam<R>>))
A helper structure to contain variable indices inside the shader
fn create_link(_: Option<&SkinnedShaderParams<R>>, info: &ProgramInfo) -> Result<Self::Link, ParameterError>
Create a new link to be used with a given program
fn fill_params(&self, link: &Self::Link, storage: &mut ParamStorage<R>)
Get all the contained parameter values, using a given link