/// Use the given image as a read-only depth/stencil attachment in a renderpass
Use the given image as a read-only depth/stencil attachment in a renderpass
Use the given image as a read - only depth / stencil attachment in a renderpass
pub fn read_depth_stencil_attachment(
        &mut self,
        node: RenderGraphNodeId,
        image: RenderGraphImageUsageId,
        mut constraint: RenderGraphImageConstraint,
        view_options: RenderGraphImageViewOptions,
        has_depth: bool,
        has_stencil: bool,
    ) {
        constraint.resource_type |= RafxResourceType::RENDER_TARGET_DEPTH_STENCIL;
        // Add the read to the graph
        let read_image = self.add_image_read(node, image, constraint, view_options);
        self.set_depth_attachment(
            node,
            RenderGraphPassDepthAttachmentInfo {
                attachment_type: RenderGraphPassAttachmentType::Read,
                clear_depth_stencil_value: None,
                read_image: Some(read_image),
                write_image: None,
                has_depth,
                has_stencil,
            },
        );
    }
pub fn read_depth_stencil_attachment ( & mut self , node : RenderGraphNodeId , image : RenderGraphImageUsageId , mut constraint : RenderGraphImageConstraint , view_options : RenderGraphImageViewOptions , has_depth : bool , has_stencil : bool , ) { constraint . resource_type |= RafxResourceType :: RENDER_TARGET_DEPTH_STENCIL ; // Add the read to the graph let read_image = self . add_image_read ( node , image , constraint , view_options ) ; self . set_depth_attachment ( node , RenderGraphPassDepthAttachmentInfo { attachment_type : RenderGraphPassAttachmentType :: Read , clear_depth_stencil_value : None , read_image : Some ( read_image ) , write_image : None , has_depth , has_stencil , } , ) ; }
Use the given image as a read-only depth/stencil attachment in a renderpass
Use the given image as a read - only depth / stencil attachment in a renderpass
&mut self
node
RenderGraphNodeId
image
RenderGraphImageUsageId
constraint
RenderGraphImageConstraint
view_options
RenderGraphImageViewOptions
has_depth
bool
has_stencil
bool