/// Use the given image as a writable depth attachment in a renderpass
Use the given image as a writable depth attachment in a renderpass
Use the given image as a writable depth attachment in a renderpass
pub fn modify_depth_attachment(
        &mut self,
        node: RenderGraphNodeId,
        image: RenderGraphImageUsageId,
        clear_depth_stencil_value: Option<RafxDepthStencilClearValue>,
        mut constraint: RenderGraphImageConstraint,
        view_options: RenderGraphImageViewOptions,
    ) -> RenderGraphImageUsageId {
        constraint.resource_type |= RafxResourceType::RENDER_TARGET_DEPTH_STENCIL;
        // Add the read to the graph
        let (read_image, write_image) =
            self.add_image_modify(node, image, constraint, view_options);
        self.set_depth_attachment(
            node,
            RenderGraphPassDepthAttachmentInfo {
                attachment_type: RenderGraphPassAttachmentType::Modify,
                clear_depth_stencil_value,
                read_image: Some(read_image),
                write_image: Some(write_image),
                has_depth: true,
                has_stencil: false,
            },
        );
        write_image
    }
pub fn modify_depth_attachment ( & mut self , node : RenderGraphNodeId , image : RenderGraphImageUsageId , clear_depth_stencil_value : Option < RafxDepthStencilClearValue > , mut constraint : RenderGraphImageConstraint , view_options : RenderGraphImageViewOptions , ) -> RenderGraphImageUsageId { constraint . resource_type |= RafxResourceType :: RENDER_TARGET_DEPTH_STENCIL ; // Add the read to the graph let ( read_image , write_image ) = self . add_image_modify ( node , image , constraint , view_options ) ; self . set_depth_attachment ( node , RenderGraphPassDepthAttachmentInfo { attachment_type : RenderGraphPassAttachmentType :: Modify , clear_depth_stencil_value , read_image : Some ( read_image ) , write_image : Some ( write_image ) , has_depth : true , has_stencil : false , } , ) ; write_image }
Use the given image as a writable depth attachment in a renderpass
Use the given image as a writable depth attachment in a renderpass
&mut self
node
RenderGraphNodeId
image
RenderGraphImageUsageId
clear_depth_stencil_value
Option<RafxDepthStencilClearValue>
constraint
RenderGraphImageConstraint
view_options
RenderGraphImageViewOptions