pub struct Hyperslice4DNode { /* private fields */ }Implementations§
Source§impl Hyperslice4DNode
impl Hyperslice4DNode
pub fn new( device: &Device, surface_format: TextureFormat, module: &ShaderModule, ) -> Self
pub fn with_depth( device: &Device, surface_format: TextureFormat, module: &ShaderModule, depth: DepthMode, ) -> Self
pub fn uniforms(&self) -> &Hyperslice4DUniforms
pub fn uniforms_mut(&mut self) -> &mut Hyperslice4DUniforms
pub fn set_uniforms(&mut self, queue: &Queue, uniforms: Hyperslice4DUniforms)
pub fn flush_uniforms(&self, queue: &Queue)
pub fn set_clear_color(&mut self, color: Color)
pub fn body_capacity(&self) -> usize
Sourcepub fn set_bodies(&mut self, bodies: &[BodyUniform])
pub fn set_bodies(&mut self, bodies: &[BodyUniform])
Does not auto-flush; pair with Self::flush_uniforms.
Source§impl Hyperslice4DNode
impl Hyperslice4DNode
Sourcepub fn record_in_viewport(
&mut self,
encoder: &mut CommandEncoder,
view: &TextureView,
viewport: Viewport,
)
pub fn record_in_viewport( &mut self, encoder: &mut CommandEncoder, view: &TextureView, viewport: Viewport, )
LoadOp::Load: the kernel discards unshaded pixels, so a background records ahead of it within the same stage.
pub fn record( &self, encoder: &mut CommandEncoder, view: &TextureView, depth_view: Option<&TextureView>, viewport: Viewport, load: ColorLoad, )
Sourcepub fn record_strip(
&mut self,
device: &Device,
queue: &Queue,
encoder: &mut CommandEncoder,
view: &TextureView,
cells: &[(Viewport, f32, BodyUniform)],
load: ColorLoad,
) -> Result<()>
pub fn record_strip( &mut self, device: &Device, queue: &Queue, encoder: &mut CommandEncoder, view: &TextureView, cells: &[(Viewport, f32, BodyUniform)], load: ColorLoad, ) -> Result<()>
Each cell gets its own uniform image and bind group: write_buffer lands ahead of the whole command buffer, so a shared image would give every cell the last write.
Auto Trait Implementations§
impl Freeze for Hyperslice4DNode
impl !RefUnwindSafe for Hyperslice4DNode
impl Send for Hyperslice4DNode
impl Sync for Hyperslice4DNode
impl Unpin for Hyperslice4DNode
impl UnsafeUnpin for Hyperslice4DNode
impl !UnwindSafe for Hyperslice4DNode
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