pub struct HyperslicePass { /* private fields */ }Implementations§
Source§impl HyperslicePass
impl HyperslicePass
pub fn new(source: String) -> Self
pub fn publish(&self, uniforms: Hyperslice4DUniforms, bodies: &[BodyUniform])
Sourcepub fn publish_strip(&self, cells: &[(Viewport, f32, BodyUniform)])
pub fn publish_strip(&self, cells: &[(Viewport, f32, BodyUniform)])
One draw per cell within the frame, each with its own w and body; an empty strip returns the pass to its full-frame draw.
pub fn body_count(&self) -> usize
pub fn set_enabled(&self, enabled: bool)
pub fn strip_cells(&self) -> usize
Trait Implementations§
Source§impl Clone for HyperslicePass
impl Clone for HyperslicePass
Source§fn clone(&self) -> HyperslicePass
fn clone(&self) -> HyperslicePass
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 FramePass for HyperslicePass
impl FramePass for HyperslicePass
fn name(&self) -> &'static str
fn stage(&self) -> PassStage
fn color_load(&self) -> ColorLoad
Source§fn depth_convention(&self) -> Option<DepthConvention>
fn depth_convention(&self) -> Option<DepthConvention>
None means the pass writes no depth; Some must match the frame’s convention to register.fn depth_read(&self) -> Option<DepthConvention>
fn record( &mut self, encoder: &mut CommandEncoder, target: &FrameTarget<'_>, ) -> Result<()>
fn attach(&mut self, gpu: &GpuContext, frame: FrameFormat) -> Result<()>
True joins the stage’s shared render pass, so
attach must build pipelines against the frame’s color and depth formats.Source§fn clear_color(&self) -> Color
fn clear_color(&self) -> Color
Read before
prepare, and only when color_load is Clear.Auto Trait Implementations§
impl Freeze for HyperslicePass
impl !RefUnwindSafe for HyperslicePass
impl !Send for HyperslicePass
impl !Sync for HyperslicePass
impl Unpin for HyperslicePass
impl UnsafeUnpin for HyperslicePass
impl !UnwindSafe for HyperslicePass
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