pub struct RayMarchNode { /* private fields */ }Implementations§
Source§impl RayMarchNode
impl RayMarchNode
pub fn new( device: &Device, surface_format: TextureFormat, shader: &ShaderModule, ) -> Self
Sourcepub fn with_depth(
device: &Device,
surface_format: TextureFormat,
shader: &ShaderModule,
depth: DepthMode,
) -> Self
pub fn with_depth( device: &Device, surface_format: TextureFormat, shader: &ShaderModule, depth: DepthMode, ) -> Self
The user’s fs_main writes crate::view’s projective depth as frag_depth.
pub fn uniforms(&self) -> &RayMarchUniforms
pub fn uniforms_mut(&mut self) -> &mut RayMarchUniforms
pub fn set_uniforms(&mut self, queue: &Queue, uniforms: RayMarchUniforms)
pub fn flush_uniforms(&self, queue: &Queue)
Source§impl RayMarchNode
impl RayMarchNode
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, )
Clears the whole attachment before shading the viewport.
Sourcepub fn record(
&self,
encoder: &mut CommandEncoder,
view: &TextureView,
depth_view: Option<&TextureView>,
viewport: Viewport,
)
pub fn record( &self, encoder: &mut CommandEncoder, view: &TextureView, depth_view: Option<&TextureView>, viewport: Viewport, )
Clears both attachments; depth clears to crate::view::DEPTH_CLEAR.
Auto Trait Implementations§
impl Freeze for RayMarchNode
impl !RefUnwindSafe for RayMarchNode
impl Send for RayMarchNode
impl Sync for RayMarchNode
impl Unpin for RayMarchNode
impl UnsafeUnpin for RayMarchNode
impl !UnwindSafe for RayMarchNode
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