[][src]Struct makepad_render::DrawCall

pub struct DrawCall {
    pub draw_call_id: usize,
    pub view_id: usize,
    pub redraw_id: u64,
    pub sub_view_id: usize,
    pub shader_id: usize,
    pub shader_instance_id: usize,
    pub instance: Vec<f32>,
    pub current_instance_offset: usize,
    pub draw_uniforms: DrawUniforms,
    pub uniforms: Vec<f32>,
    pub uniforms_required: usize,
    pub do_v_scroll: bool,
    pub do_h_scroll: bool,
    pub textures_2d: Vec<u32>,
    pub instance_dirty: bool,
    pub uniforms_dirty: bool,
    pub platform: CxPlatformDrawCall,
}

Fields

draw_call_id: usizeview_id: usizeredraw_id: u64sub_view_id: usizeshader_id: usizeshader_instance_id: usizeinstance: Vec<f32>current_instance_offset: usizedraw_uniforms: DrawUniformsuniforms: Vec<f32>uniforms_required: usizedo_v_scroll: booldo_h_scroll: booltextures_2d: Vec<u32>instance_dirty: booluniforms_dirty: boolplatform: CxPlatformDrawCall

Methods

impl DrawCall[src]

pub fn need_uniforms_now(&self) -> bool[src]

pub fn set_local_scroll(&mut self, scroll: Vec2, local_scroll: Vec2)[src]

pub fn set_zbias(&mut self, zbias: f32)[src]

pub fn set_clip(&mut self, clip: (Vec2, Vec2))[src]

pub fn get_current_instance_area(&self, instance_count: usize) -> InstanceArea[src]

pub fn clip_and_scroll_rect(&self, x: f32, y: f32, w: f32, h: f32) -> Rect[src]

Trait Implementations

impl Clone for DrawCall[src]

impl Default for DrawCall[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]