Struct screen_13::graph::RenderGraph
source · [−]pub struct RenderGraph {
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 RenderGraph
impl RenderGraph
pub fn new() -> Self
pub fn begin_pass(&mut self, name: impl AsRef<str>) -> PassRef<'_>
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>,
pub fn blit_image(
&mut self,
src_node: impl Into<AnyImageNode>,
dst_node: impl Into<AnyImageNode>,
filter: Filter
) -> &mut Self
pub fn blit_image_region(
&mut self,
src_node: impl Into<AnyImageNode>,
dst_node: impl Into<AnyImageNode>,
region: &ImageBlit,
filter: Filter
) -> &mut Self
pub fn blit_image_regions(
&mut self,
src_node: impl Into<AnyImageNode>,
dst_node: impl Into<AnyImageNode>,
regions: impl Into<Box<[ImageBlit]>>,
filter: Filter
) -> &mut Self
sourcepub fn clear_color_image(
&mut self,
image_node: impl Into<AnyImageNode>
) -> &mut Self
pub fn clear_color_image(
&mut self,
image_node: impl Into<AnyImageNode>
) -> &mut Self
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>,
color_value: impl Into<Color>
) -> &mut Self
sourcepub fn clear_depth_stencil_image(
&mut self,
image_node: impl Into<AnyImageNode>
) -> &mut Self
pub fn clear_depth_stencil_image(
&mut self,
image_node: impl Into<AnyImageNode>
) -> &mut Self
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>,
depth: f32,
stencil: u32
) -> &mut Self
pub fn copy_buffer(
&mut self,
src_node: impl Into<AnyBufferNode>,
dst_node: impl Into<AnyBufferNode>
) -> &mut Self
pub fn copy_buffer_region(
&mut self,
src_node: impl Into<AnyBufferNode>,
dst_node: impl Into<AnyBufferNode>,
region: &BufferCopy
) -> &mut Self
pub fn copy_buffer_regions(
&mut self,
src_node: impl Into<AnyBufferNode>,
dst_node: impl Into<AnyBufferNode>,
regions: impl Into<Box<[BufferCopy]>>
) -> &mut Self
pub fn copy_buffer_to_image(
&mut self,
src_node: impl Into<AnyBufferNode>,
dst_node: impl Into<AnyImageNode>
) -> &mut Self
pub fn copy_buffer_to_image_region(
&mut self,
src_node: impl Into<AnyBufferNode>,
dst_node: impl Into<AnyImageNode>,
region: &BufferImageCopy
) -> &mut Self
pub fn copy_buffer_to_image_regions(
&mut self,
src_node: impl Into<AnyBufferNode>,
dst_node: impl Into<AnyImageNode>,
regions: impl Into<Box<[BufferImageCopy]>>
) -> &mut Self
pub fn copy_image(
&mut self,
src_node: impl Into<AnyImageNode>,
dst_node: impl Into<AnyImageNode>
) -> &mut Self
pub fn copy_image_region(
&mut self,
src_node: impl Into<AnyImageNode>,
dst_node: impl Into<AnyImageNode>,
region: &ImageCopy
) -> &mut Self
pub fn copy_image_regions(
&mut self,
src_node: impl Into<AnyImageNode>,
dst_node: impl Into<AnyImageNode>,
regions: impl Into<Box<[ImageCopy]>>
) -> &mut Self
pub fn copy_image_to_buffer(
&mut self,
src_node: impl Into<AnyImageNode>,
dst_node: impl Into<AnyBufferNode>
) -> &mut Self
pub fn copy_image_to_buffer_region(
&mut self,
src_node: impl Into<AnyImageNode>,
dst_node: impl Into<AnyBufferNode>,
region: &BufferImageCopy
) -> &mut Self
pub fn copy_image_to_buffer_regions(
&mut self,
src_node: impl Into<AnyImageNode>,
dst_node: impl Into<AnyBufferNode>,
regions: impl Into<Box<[BufferImageCopy]>>
) -> &mut Self
pub fn fill_buffer(
&mut self,
buffer_node: impl Into<AnyBufferNode>,
data: u32
) -> &mut Self
pub fn fill_buffer_region(
&mut self,
buffer_node: impl Into<AnyBufferNode>,
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
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>,
data: &'static [u8]
) -> &mut Self
pub fn update_buffer(
&mut self,
buffer_node: impl Into<AnyBufferNode>,
data: &'static [u8]
) -> &mut Self
Note: data must not exceed 65536 bytes.
sourcepub fn update_buffer_offset(
&mut self,
buffer_node: impl Into<AnyBufferNode>,
data: &'static [u8],
offset: DeviceSize
) -> &mut Self
pub fn update_buffer_offset(
&mut self,
buffer_node: impl Into<AnyBufferNode>,
data: &'static [u8],
offset: DeviceSize
) -> &mut Self
Note: data must not exceed 65536 bytes.
Trait Implementations
sourceimpl Bind<&mut RenderGraph, AccelerationStructureLeaseNode> for Lease<AccelerationStructure>
impl Bind<&mut RenderGraph, AccelerationStructureLeaseNode> for Lease<AccelerationStructure>
fn bind(self, graph: &mut RenderGraph) -> AccelerationStructureLeaseNode
sourceimpl<'a> Bind<&mut RenderGraph, AccelerationStructureLeaseNode> for &'a Arc<Lease<AccelerationStructure>>
impl<'a> Bind<&mut RenderGraph, AccelerationStructureLeaseNode> for &'a Arc<Lease<AccelerationStructure>>
fn bind(self, graph: &mut RenderGraph) -> AccelerationStructureLeaseNode
sourceimpl Bind<&mut RenderGraph, AccelerationStructureLeaseNode> for Arc<Lease<AccelerationStructure>>
impl Bind<&mut RenderGraph, AccelerationStructureLeaseNode> for Arc<Lease<AccelerationStructure>>
fn bind(self, graph: &mut RenderGraph) -> AccelerationStructureLeaseNode
sourceimpl Bind<&mut RenderGraph, AccelerationStructureNode> for AccelerationStructure
impl Bind<&mut RenderGraph, AccelerationStructureNode> for AccelerationStructure
fn bind(self, graph: &mut RenderGraph) -> AccelerationStructureNode
sourceimpl<'a> Bind<&mut RenderGraph, AccelerationStructureNode> for &'a Arc<AccelerationStructure>
impl<'a> Bind<&mut RenderGraph, AccelerationStructureNode> for &'a Arc<AccelerationStructure>
fn bind(self, graph: &mut RenderGraph) -> AccelerationStructureNode
sourceimpl Bind<&mut RenderGraph, AccelerationStructureNode> for Arc<AccelerationStructure>
impl Bind<&mut RenderGraph, AccelerationStructureNode> for Arc<AccelerationStructure>
fn bind(self, graph: &mut RenderGraph) -> AccelerationStructureNode
sourceimpl Bind<&mut RenderGraph, BufferLeaseNode> for Lease<Buffer>
impl Bind<&mut RenderGraph, BufferLeaseNode> for Lease<Buffer>
fn bind(self, graph: &mut RenderGraph) -> BufferLeaseNode
sourceimpl<'a> Bind<&mut RenderGraph, BufferLeaseNode> for &'a Arc<Lease<Buffer>>
impl<'a> Bind<&mut RenderGraph, BufferLeaseNode> for &'a Arc<Lease<Buffer>>
fn bind(self, graph: &mut RenderGraph) -> BufferLeaseNode
sourceimpl Bind<&mut RenderGraph, BufferLeaseNode> for Arc<Lease<Buffer>>
impl Bind<&mut RenderGraph, BufferLeaseNode> for Arc<Lease<Buffer>>
fn bind(self, graph: &mut RenderGraph) -> BufferLeaseNode
sourceimpl Bind<&mut RenderGraph, BufferNode> for Buffer
impl Bind<&mut RenderGraph, BufferNode> for Buffer
fn bind(self, graph: &mut RenderGraph) -> BufferNode
sourceimpl<'a> Bind<&mut RenderGraph, BufferNode> for &'a Arc<Buffer>
impl<'a> Bind<&mut RenderGraph, BufferNode> for &'a Arc<Buffer>
fn bind(self, graph: &mut RenderGraph) -> BufferNode
sourceimpl Bind<&mut RenderGraph, BufferNode> for Arc<Buffer>
impl Bind<&mut RenderGraph, BufferNode> for Arc<Buffer>
fn bind(self, graph: &mut RenderGraph) -> BufferNode
sourceimpl Bind<&mut RenderGraph, ImageLeaseNode> for Lease<Image>
impl Bind<&mut RenderGraph, ImageLeaseNode> for Lease<Image>
fn bind(self, graph: &mut RenderGraph) -> ImageLeaseNode
sourceimpl<'a> Bind<&mut RenderGraph, ImageLeaseNode> for &'a Arc<Lease<Image>>
impl<'a> Bind<&mut RenderGraph, ImageLeaseNode> for &'a Arc<Lease<Image>>
fn bind(self, graph: &mut RenderGraph) -> ImageLeaseNode
sourceimpl Bind<&mut RenderGraph, ImageLeaseNode> for Arc<Lease<Image>>
impl Bind<&mut RenderGraph, ImageLeaseNode> for Arc<Lease<Image>>
fn bind(self, graph: &mut RenderGraph) -> ImageLeaseNode
sourceimpl Bind<&mut RenderGraph, ImageNode> for Image
impl Bind<&mut RenderGraph, ImageNode> for Image
fn bind(self, graph: &mut RenderGraph) -> ImageNode
sourceimpl<'a> Bind<&mut RenderGraph, ImageNode> for &'a Arc<Image>
impl<'a> Bind<&mut RenderGraph, ImageNode> for &'a Arc<Image>
fn bind(self, graph: &mut RenderGraph) -> ImageNode
sourceimpl Bind<&mut RenderGraph, ImageNode> for Arc<Image>
impl Bind<&mut RenderGraph, ImageNode> for Arc<Image>
fn bind(self, graph: &mut RenderGraph) -> ImageNode
sourceimpl Bind<&mut RenderGraph, SwapchainImageNode> for SwapchainImage
impl Bind<&mut RenderGraph, SwapchainImageNode> for SwapchainImage
fn bind(self, graph: &mut RenderGraph) -> SwapchainImageNode
sourceimpl Debug for RenderGraph
impl Debug for RenderGraph
sourceimpl Unbind<RenderGraph, Arc<AccelerationStructure>> for AccelerationStructureNode
impl Unbind<RenderGraph, Arc<AccelerationStructure>> for AccelerationStructureNode
fn unbind(self, graph: &mut RenderGraph) -> Arc<AccelerationStructure>
sourceimpl Unbind<RenderGraph, Arc<Buffer>> for BufferNode
impl Unbind<RenderGraph, Arc<Buffer>> for BufferNode
fn unbind(self, graph: &mut RenderGraph) -> Arc<Buffer>
sourceimpl Unbind<RenderGraph, Arc<Image>> for ImageNode
impl Unbind<RenderGraph, Arc<Image>> for ImageNode
fn unbind(self, graph: &mut RenderGraph) -> Arc<Image>
sourceimpl Unbind<RenderGraph, Arc<Lease<AccelerationStructure>>> for AccelerationStructureLeaseNode
impl Unbind<RenderGraph, Arc<Lease<AccelerationStructure>>> for AccelerationStructureLeaseNode
fn unbind(self, graph: &mut RenderGraph) -> Arc<Lease<AccelerationStructure>>
sourceimpl Unbind<RenderGraph, Arc<Lease<Buffer>>> for BufferLeaseNode
impl Unbind<RenderGraph, Arc<Lease<Buffer>>> for BufferLeaseNode
sourceimpl Unbind<RenderGraph, Arc<Lease<Image>>> for ImageLeaseNode
impl Unbind<RenderGraph, Arc<Lease<Image>>> for ImageLeaseNode
Auto Trait Implementations
impl !RefUnwindSafe for RenderGraph
impl Send for RenderGraph
impl !Sync for RenderGraph
impl Unpin for RenderGraph
impl !UnwindSafe for RenderGraph
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