pub struct InstanceArea {
pub view_id: usize,
pub draw_call_id: usize,
pub instance_offset: usize,
pub instance_count: usize,
pub redraw_id: u64,
}
Fields§
§view_id: usize
§draw_call_id: usize
§instance_offset: usize
§instance_count: usize
§redraw_id: u64
Implementations§
Source§impl InstanceArea
impl InstanceArea
pub fn push_slice(&self, cx: &mut Cx, data: &[f32])
pub fn push_last_float( &self, cx: &mut Cx, animator: &Animator, ident: InstanceFloat, ) -> f32
pub fn push_float(&self, cx: &mut Cx, value: f32)
pub fn push_last_vec2( &self, cx: &mut Cx, animator: &Animator, ident: InstanceVec2, ) -> Vec2
pub fn push_vec2(&self, cx: &mut Cx, value: Vec2)
pub fn push_last_vec3( &self, cx: &mut Cx, animator: &Animator, ident: InstanceVec3, ) -> Vec3
pub fn push_vec3(&self, cx: &mut Cx, value: Vec3)
pub fn push_last_vec4( &self, cx: &mut Cx, animator: &Animator, ident: InstanceVec4, ) -> Vec4
pub fn push_vec4(&self, cx: &mut Cx, value: Vec4)
pub fn push_last_color( &self, cx: &mut Cx, animator: &Animator, ident: InstanceColor, ) -> Color
pub fn push_color(&self, cx: &mut Cx, value: Color)
pub fn set_do_scroll(&self, cx: &mut Cx, hor: bool, ver: bool)
pub fn need_uniforms_now(&self, cx: &mut Cx) -> bool
pub fn push_uniform_texture_2d(&self, cx: &mut Cx, texture: &Texture)
pub fn push_uniform_texture_2d_id(&self, cx: &mut Cx, texture_id: usize)
pub fn push_uniform_float(&self, cx: &mut Cx, v: f32)
pub fn push_uniform_vec2(&self, cx: &mut Cx, v: Vec2)
pub fn push_uniform_vec2f(&self, cx: &mut Cx, x: f32, y: f32)
pub fn push_uniform_vec3f(&mut self, cx: &mut Cx, x: f32, y: f32, z: f32)
pub fn push_uniform_vec4f(&self, cx: &mut Cx, x: f32, y: f32, z: f32, w: f32)
pub fn push_uniform_mat4(&self, cx: &mut Cx, v: &Mat4)
Trait Implementations§
Source§impl Clone for InstanceArea
impl Clone for InstanceArea
Source§fn clone(&self) -> InstanceArea
fn clone(&self) -> InstanceArea
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 InstanceArea
impl Debug for InstanceArea
Source§impl Default for InstanceArea
impl Default for InstanceArea
Source§fn default() -> InstanceArea
fn default() -> InstanceArea
Returns the “default value” for a type. Read more
Source§impl Into<Area> for InstanceArea
impl Into<Area> for InstanceArea
Source§impl PartialEq for InstanceArea
impl PartialEq for InstanceArea
impl Copy for InstanceArea
impl StructuralPartialEq for InstanceArea
Auto Trait Implementations§
impl Freeze for InstanceArea
impl RefUnwindSafe for InstanceArea
impl Send for InstanceArea
impl Sync for InstanceArea
impl Unpin for InstanceArea
impl UnwindSafe for InstanceArea
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