pub fn write_external_image(
        &mut self,
        external_image_id: RenderGraphExternalImageId,
        image_id: RenderGraphImageUsageId,
    ) {
        let external_image = &self.external_images[external_image_id.0];
        let view_options = external_image.view_options.clone();

        let version_id = self.image_version_id(image_id);
        let usage_id = self.add_image_usage(
            RenderGraphImageUser::Output(external_image_id),
            version_id,
            RenderGraphImageUsageType::Output,
            view_options,
        );

        let image_version = self.image_version_info_mut(image_id);
        image_version.read_usages.push(usage_id);

        self.external_images[external_image_id.0].output_usage = Some(usage_id);
    }
/// Use an external image as an output for a render graph node
Use an external image as an output for a render graph node
Use an external image as an output for a render graph node
pub fn write_external_image(
        &mut self,
        external_image_id: RenderGraphExternalImageId,
        image_id: RenderGraphImageUsageId,
    ) {
        let external_image = &self.external_images[external_image_id.0];
        let view_options = external_image.view_options.clone();
        let version_id = self.image_version_id(image_id);
        let usage_id = self.add_image_usage(
            RenderGraphImageUser::Output(external_image_id),
            version_id,
            RenderGraphImageUsageType::Output,
            view_options,
        );
        let image_version = self.image_version_info_mut(image_id);
        image_version.read_usages.push(usage_id);
        self.external_images[external_image_id.0].output_usage = Some(usage_id);
    }
pub fn write_external_image ( & mut self , external_image_id : RenderGraphExternalImageId , image_id : RenderGraphImageUsageId , ) { let external_image = & self . external_images [ external_image_id . 0 ] ; let view_options = external_image . view_options . clone ( ) ; let version_id = self . image_version_id ( image_id ) ; let usage_id = self . add_image_usage ( RenderGraphImageUser :: Output ( external_image_id ) , version_id , RenderGraphImageUsageType :: Output , view_options , ) ; let image_version = self . image_version_info_mut ( image_id ) ; image_version . read_usages . push ( usage_id ) ; self . external_images [ external_image_id . 0 ] . output_usage = Some ( usage_id ) ; }
Use an external image as an output for a render graph node
Use an external image as an output for a render graph node
&mut self
external_image_id
RenderGraphExternalImageId
image_id
RenderGraphImageUsageId
&mut self
external_image_id
RenderGraphExternalImageId
image_id
RenderGraphImageUsageId