Struct screen_13::graph::RenderGraph
source · [−]pub struct RenderGraph<P> where
P: SharedPointerKind, {
pub debug: bool,
/* private fields */
}Fields
debug: boolSet to true (when in debug mode) in order to get a breakpoint hit where you want.
Implementations
sourceimpl<P> RenderGraph<P> where
P: SharedPointerKind + Send + 'static,
impl<P> RenderGraph<P> where
P: SharedPointerKind + Send + 'static,
pub fn new() -> Self
pub fn begin_pass(&mut self, name: impl AsRef<str>) -> PassRef<'_, P>
pub fn bind_node<'a, B>(&'a mut self, binding: B) -> <B as Edge<Self>>::Result where
B: Edge<Self>,
B: Bind<&'a mut Self, <B as Edge<Self>>::Result, P>,
P: 'static,
pub fn blit_image(
&mut self,
src_node: impl Into<AnyImageNode<P>>,
dst_node: impl Into<AnyImageNode<P>>,
filter: Filter
) -> &mut Self
pub fn blit_image_region(
&mut self,
src_node: impl Into<AnyImageNode<P>>,
dst_node: impl Into<AnyImageNode<P>>,
region: &ImageBlit,
filter: Filter
) -> &mut Self
pub fn blit_image_regions(
&mut self,
src_node: impl Into<AnyImageNode<P>>,
dst_node: impl Into<AnyImageNode<P>>,
regions: impl Into<Box<[ImageBlit]>>,
filter: Filter
) -> &mut Self
sourcepub fn clear_color_image(
&mut self,
image_node: impl Into<AnyImageNode<P>>
) -> &mut Self where
P: SharedPointerKind + 'static,
pub fn clear_color_image(
&mut self,
image_node: impl Into<AnyImageNode<P>>
) -> &mut Self where
P: SharedPointerKind + 'static,
Clears a color image as part of a render graph but outside of any graphic render pass
pub fn clear_color_image_value(
&mut self,
image_node: impl Into<AnyImageNode<P>>,
color_value: impl Into<Color>
) -> &mut Self where
P: SharedPointerKind + 'static,
sourcepub fn clear_depth_stencil_image(
&mut self,
image_node: impl Into<AnyImageNode<P>>
) -> &mut Self where
P: SharedPointerKind + 'static,
pub fn clear_depth_stencil_image(
&mut self,
image_node: impl Into<AnyImageNode<P>>
) -> &mut Self where
P: SharedPointerKind + 'static,
Clears a depth/stencil image as part of a render graph but outside of any graphic render pass
pub fn clear_depth_stencil_image_value(
&mut self,
image_node: impl Into<AnyImageNode<P>>,
depth: f32,
stencil: u32
) -> &mut Self where
P: SharedPointerKind + 'static,
pub fn copy_buffer(
&mut self,
src_node: impl Into<AnyBufferNode<P>>,
dst_node: impl Into<AnyBufferNode<P>>
) -> &mut Self
pub fn copy_buffer_region(
&mut self,
src_node: impl Into<AnyBufferNode<P>>,
dst_node: impl Into<AnyBufferNode<P>>,
region: &BufferCopy
) -> &mut Self
pub fn copy_buffer_regions(
&mut self,
src_node: impl Into<AnyBufferNode<P>>,
dst_node: impl Into<AnyBufferNode<P>>,
regions: impl Into<Box<[BufferCopy]>>
) -> &mut Self
pub fn copy_buffer_to_image(
&mut self,
src_node: impl Into<AnyBufferNode<P>>,
dst_node: impl Into<AnyImageNode<P>>
) -> &mut Self
pub fn copy_buffer_to_image_region(
&mut self,
src_node: impl Into<AnyBufferNode<P>>,
dst_node: impl Into<AnyImageNode<P>>,
region: &BufferImageCopy
) -> &mut Self
pub fn copy_buffer_to_image_regions(
&mut self,
src_node: impl Into<AnyBufferNode<P>>,
dst_node: impl Into<AnyImageNode<P>>,
regions: impl Into<Box<[BufferImageCopy]>>
) -> &mut Self
pub fn copy_image(
&mut self,
src_node: impl Into<AnyImageNode<P>>,
dst_node: impl Into<AnyImageNode<P>>
) -> &mut Self
pub fn copy_image_region(
&mut self,
src_node: impl Into<AnyImageNode<P>>,
dst_node: impl Into<AnyImageNode<P>>,
region: &ImageCopy
) -> &mut Self
pub fn copy_image_regions(
&mut self,
src_node: impl Into<AnyImageNode<P>>,
dst_node: impl Into<AnyImageNode<P>>,
regions: impl Into<Box<[ImageCopy]>>
) -> &mut Self
pub fn copy_image_to_buffer(
&mut self,
src_node: impl Into<AnyImageNode<P>>,
dst_node: impl Into<AnyBufferNode<P>>
) -> &mut Self
pub fn copy_image_to_buffer_region(
&mut self,
src_node: impl Into<AnyImageNode<P>>,
dst_node: impl Into<AnyBufferNode<P>>,
region: &BufferImageCopy
) -> &mut Self
pub fn copy_image_to_buffer_regions(
&mut self,
src_node: impl Into<AnyImageNode<P>>,
dst_node: impl Into<AnyBufferNode<P>>,
regions: impl Into<Box<[BufferImageCopy]>>
) -> &mut Self
pub fn fill_buffer(
&mut self,
buffer_node: impl Into<AnyBufferNode<P>>,
data: u32
) -> &mut Self
pub fn fill_buffer_region(
&mut self,
buffer_node: impl Into<AnyBufferNode<P>>,
data: u32,
region: Range<DeviceSize>
) -> &mut Self
pub fn node_info<N>(&self, node: N) -> <N as Information>::Info where
N: Information,
pub fn resolve(self) -> Resolver<P>
pub fn unbind_node<N>(&mut self, node: N) -> <N as Edge<Self>>::Result where
N: Edge<Self>,
N: Unbind<Self, <N as Edge<Self>>::Result>,
sourcepub fn update_buffer(
&mut self,
buffer_node: impl Into<AnyBufferNode<P>>,
data: &'static [u8]
) -> &mut Self
pub fn update_buffer(
&mut self,
buffer_node: impl Into<AnyBufferNode<P>>,
data: &'static [u8]
) -> &mut Self
Note: data must not exceed 65536 bytes.
sourcepub fn update_buffer_offset(
&mut self,
buffer_node: impl Into<AnyBufferNode<P>>,
data: &'static [u8],
offset: DeviceSize
) -> &mut Self
pub fn update_buffer_offset(
&mut self,
buffer_node: impl Into<AnyBufferNode<P>>,
data: &'static [u8],
offset: DeviceSize
) -> &mut Self
Note: data must not exceed 65536 bytes.
Trait Implementations
sourceimpl<P> Bind<&'_ mut RenderGraph<P>, AccelerationStructureLeaseNode<P>, P> for AccelerationStructureLeaseBinding<P> where
P: SharedPointerKind,
impl<P> Bind<&'_ mut RenderGraph<P>, AccelerationStructureLeaseNode<P>, P> for AccelerationStructureLeaseBinding<P> where
P: SharedPointerKind,
fn bind(self, graph: &mut RenderGraph<P>) -> AccelerationStructureLeaseNode<P>
sourceimpl<P> Bind<&'_ mut RenderGraph<P>, AccelerationStructureLeaseNode<P>, P> for Lease<AccelerationStructureBinding<P>, P> where
P: SharedPointerKind,
impl<P> Bind<&'_ mut RenderGraph<P>, AccelerationStructureLeaseNode<P>, P> for Lease<AccelerationStructureBinding<P>, P> where
P: SharedPointerKind,
fn bind(self, graph: &mut RenderGraph<P>) -> AccelerationStructureLeaseNode<P>
sourceimpl<P> Bind<&'_ mut RenderGraph<P>, AccelerationStructureNode<P>, P> for AccelerationStructure<P> where
P: SharedPointerKind,
impl<P> Bind<&'_ mut RenderGraph<P>, AccelerationStructureNode<P>, P> for AccelerationStructure<P> where
P: SharedPointerKind,
fn bind(self, graph: &mut RenderGraph<P>) -> AccelerationStructureNode<P>
sourceimpl<P> Bind<&'_ mut RenderGraph<P>, AccelerationStructureNode<P>, P> for AccelerationStructureBinding<P> where
P: SharedPointerKind,
impl<P> Bind<&'_ mut RenderGraph<P>, AccelerationStructureNode<P>, P> for AccelerationStructureBinding<P> where
P: SharedPointerKind,
fn bind(self, graph: &mut RenderGraph<P>) -> AccelerationStructureNode<P>
sourceimpl<P> Bind<&'_ mut RenderGraph<P>, BufferLeaseNode<P>, P> for BufferLeaseBinding<P> where
P: SharedPointerKind,
impl<P> Bind<&'_ mut RenderGraph<P>, BufferLeaseNode<P>, P> for BufferLeaseBinding<P> where
P: SharedPointerKind,
fn bind(self, graph: &mut RenderGraph<P>) -> BufferLeaseNode<P>
sourceimpl<P> Bind<&'_ mut RenderGraph<P>, BufferLeaseNode<P>, P> for Lease<BufferBinding<P>, P> where
P: SharedPointerKind,
impl<P> Bind<&'_ mut RenderGraph<P>, BufferLeaseNode<P>, P> for Lease<BufferBinding<P>, P> where
P: SharedPointerKind,
fn bind(self, graph: &mut RenderGraph<P>) -> BufferLeaseNode<P>
sourceimpl<P> Bind<&'_ mut RenderGraph<P>, BufferNode<P>, P> for Buffer<P> where
P: SharedPointerKind,
impl<P> Bind<&'_ mut RenderGraph<P>, BufferNode<P>, P> for Buffer<P> where
P: SharedPointerKind,
fn bind(self, graph: &mut RenderGraph<P>) -> BufferNode<P>
sourceimpl<P> Bind<&'_ mut RenderGraph<P>, BufferNode<P>, P> for BufferBinding<P> where
P: SharedPointerKind,
impl<P> Bind<&'_ mut RenderGraph<P>, BufferNode<P>, P> for BufferBinding<P> where
P: SharedPointerKind,
fn bind(self, graph: &mut RenderGraph<P>) -> BufferNode<P>
sourceimpl<P> Bind<&'_ mut RenderGraph<P>, ImageLeaseNode<P>, P> for ImageLeaseBinding<P> where
P: SharedPointerKind,
impl<P> Bind<&'_ mut RenderGraph<P>, ImageLeaseNode<P>, P> for ImageLeaseBinding<P> where
P: SharedPointerKind,
fn bind(self, graph: &mut RenderGraph<P>) -> ImageLeaseNode<P>
sourceimpl<P> Bind<&'_ mut RenderGraph<P>, ImageLeaseNode<P>, P> for Lease<ImageBinding<P>, P> where
P: SharedPointerKind,
impl<P> Bind<&'_ mut RenderGraph<P>, ImageLeaseNode<P>, P> for Lease<ImageBinding<P>, P> where
P: SharedPointerKind,
fn bind(self, graph: &mut RenderGraph<P>) -> ImageLeaseNode<P>
sourceimpl<P> Bind<&'_ mut RenderGraph<P>, ImageNode<P>, P> for Image<P> where
P: SharedPointerKind,
impl<P> Bind<&'_ mut RenderGraph<P>, ImageNode<P>, P> for Image<P> where
P: SharedPointerKind,
fn bind(self, graph: &mut RenderGraph<P>) -> ImageNode<P>
sourceimpl<P> Bind<&'_ mut RenderGraph<P>, ImageNode<P>, P> for ImageBinding<P> where
P: SharedPointerKind,
impl<P> Bind<&'_ mut RenderGraph<P>, ImageNode<P>, P> for ImageBinding<P> where
P: SharedPointerKind,
fn bind(self, graph: &mut RenderGraph<P>) -> ImageNode<P>
sourceimpl<P> Bind<&'_ mut RenderGraph<P>, SwapchainImageNode<P>, P> for SwapchainImage<P> where
P: SharedPointerKind,
impl<P> Bind<&'_ mut RenderGraph<P>, SwapchainImageNode<P>, P> for SwapchainImage<P> where
P: SharedPointerKind,
fn bind(self, graph: &mut RenderGraph<P>) -> SwapchainImageNode<P>
sourceimpl<P> Bind<&'_ mut RenderGraph<P>, SwapchainImageNode<P>, P> for SwapchainImageBinding<P> where
P: SharedPointerKind,
impl<P> Bind<&'_ mut RenderGraph<P>, SwapchainImageNode<P>, P> for SwapchainImageBinding<P> where
P: SharedPointerKind,
fn bind(self, graph: &mut RenderGraph<P>) -> SwapchainImageNode<P>
sourceimpl<P: Debug> Debug for RenderGraph<P> where
P: SharedPointerKind,
impl<P: Debug> Debug for RenderGraph<P> where
P: SharedPointerKind,
sourceimpl<P> Unbind<RenderGraph<P>, AccelerationStructureBinding<P>> for AccelerationStructureNode<P> where
P: SharedPointerKind + Send + 'static,
impl<P> Unbind<RenderGraph<P>, AccelerationStructureBinding<P>> for AccelerationStructureNode<P> where
P: SharedPointerKind + Send + 'static,
fn unbind(self, graph: &mut RenderGraph<P>) -> AccelerationStructureBinding<P>
sourceimpl<P> Unbind<RenderGraph<P>, AccelerationStructureLeaseBinding<P>> for AccelerationStructureLeaseNode<P> where
P: SharedPointerKind + Send + 'static,
impl<P> Unbind<RenderGraph<P>, AccelerationStructureLeaseBinding<P>> for AccelerationStructureLeaseNode<P> where
P: SharedPointerKind + Send + 'static,
fn unbind(
self,
graph: &mut RenderGraph<P>
) -> AccelerationStructureLeaseBinding<P>
sourceimpl<P> Unbind<RenderGraph<P>, BufferBinding<P>> for BufferNode<P> where
P: SharedPointerKind + Send + 'static,
impl<P> Unbind<RenderGraph<P>, BufferBinding<P>> for BufferNode<P> where
P: SharedPointerKind + Send + 'static,
fn unbind(self, graph: &mut RenderGraph<P>) -> BufferBinding<P>
sourceimpl<P> Unbind<RenderGraph<P>, BufferLeaseBinding<P>> for BufferLeaseNode<P> where
P: SharedPointerKind + Send + 'static,
impl<P> Unbind<RenderGraph<P>, BufferLeaseBinding<P>> for BufferLeaseNode<P> where
P: SharedPointerKind + Send + 'static,
fn unbind(self, graph: &mut RenderGraph<P>) -> BufferLeaseBinding<P>
sourceimpl<P> Unbind<RenderGraph<P>, ImageBinding<P>> for ImageNode<P> where
P: SharedPointerKind + Send + 'static,
impl<P> Unbind<RenderGraph<P>, ImageBinding<P>> for ImageNode<P> where
P: SharedPointerKind + Send + 'static,
fn unbind(self, graph: &mut RenderGraph<P>) -> ImageBinding<P>
sourceimpl<P> Unbind<RenderGraph<P>, ImageLeaseBinding<P>> for ImageLeaseNode<P> where
P: SharedPointerKind + Send + 'static,
impl<P> Unbind<RenderGraph<P>, ImageLeaseBinding<P>> for ImageLeaseNode<P> where
P: SharedPointerKind + Send + 'static,
fn unbind(self, graph: &mut RenderGraph<P>) -> ImageLeaseBinding<P>
Auto Trait Implementations
impl<P> !RefUnwindSafe for RenderGraph<P>
impl<P> Send for RenderGraph<P> where
P: Send,
impl<P> !Sync for RenderGraph<P>
impl<P> Unpin for RenderGraph<P> where
P: Unpin,
impl<P> !UnwindSafe for RenderGraph<P>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more