pub struct CxPass {
pub color_textures: Vec<CxPassColorTexture>,
pub depth_texture: Option<usize>,
pub clear_depth: ClearDepth,
pub depth_init: f64,
pub override_dpi_factor: Option<f32>,
pub main_view_id: Option<usize>,
pub dep_of: CxPassDepOf,
pub paint_dirty: bool,
pub pass_size: Vec2,
pub pass_uniforms: PassUniforms,
pub zbias_step: f32,
pub platform: CxPlatformPass,
}
Fields§
§color_textures: Vec<CxPassColorTexture>
§depth_texture: Option<usize>
§clear_depth: ClearDepth
§depth_init: f64
§override_dpi_factor: Option<f32>
§main_view_id: Option<usize>
§dep_of: CxPassDepOf
§paint_dirty: bool
§pass_size: Vec2
§pass_uniforms: PassUniforms
§zbias_step: f32
§platform: CxPlatformPass
Implementations§
Source§impl CxPass
impl CxPass
pub fn def_uniforms(sg: ShaderGen) -> ShaderGen
pub fn uniform_camera_projection(&mut self, v: &Mat4)
pub fn uniform_camera_view(&mut self, v: &Mat4)
pub fn set_dpi_factor(&mut self, dpi_factor: f32)
pub fn set_ortho_matrix(&mut self, offset: Vec2, size: Vec2)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CxPass
impl RefUnwindSafe for CxPass
impl Send for CxPass
impl Sync for CxPass
impl Unpin for CxPass
impl UnwindSafe for CxPass
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