/// Create a new image and use it as a resolve attachment in a renderpass
Create a new image and use it as a resolve attachment in a renderpass
Create a new image and use it as a resolve attachment in a renderpass
pub fn create_resolve_attachment(
        &mut self,
        node: RenderGraphNodeId,
        resolve_attachment_index: usize,
        mut constraint: RenderGraphImageConstraint,
        view_options: RenderGraphImageViewOptions,
    ) -> RenderGraphImageUsageId {
        constraint.resource_type |= RafxResourceType::RENDER_TARGET_COLOR;
        let create_image = self.add_image_create(node, constraint, view_options);
        self.set_resolve_attachment(
            node,
            resolve_attachment_index,
            RenderGraphPassResolveAttachmentInfo {
                attachment_type: RenderGraphPassAttachmentType::Create,
                write_image: create_image,
            },
        );
        create_image
    }
pub fn create_resolve_attachment ( & mut self , node : RenderGraphNodeId , resolve_attachment_index : usize , mut constraint : RenderGraphImageConstraint , view_options : RenderGraphImageViewOptions , ) -> RenderGraphImageUsageId { constraint . resource_type |= RafxResourceType :: RENDER_TARGET_COLOR ; let create_image = self . add_image_create ( node , constraint , view_options ) ; self . set_resolve_attachment ( node , resolve_attachment_index , RenderGraphPassResolveAttachmentInfo { attachment_type : RenderGraphPassAttachmentType :: Create , write_image : create_image , } , ) ; create_image }
Create a new image and use it as a resolve attachment in a renderpass
Create a new image and use it as a resolve attachment in a renderpass
&mut self
node
RenderGraphNodeId
resolve_attachment_index
usize
constraint
RenderGraphImageConstraint
view_options
RenderGraphImageViewOptions