pub fn partial_merge(
        &mut self,
        other: &RenderGraphImageConstraint,
    ) -> bool {
        let mut complete_merge = true;

        if self.samples.is_some() && other.samples.is_some() && self.samples != other.samples {
            complete_merge = false;
        } else if other.samples.is_some() {
            self.samples = other.samples;
        }

        if self.format.is_some() && other.format.is_some() && self.format != other.format {
            complete_merge = false;
        } else if other.format.is_some() {
            self.format = other.format;
        }

        if self.layer_count.is_some()
            && other.layer_count.is_some()
            && self.layer_count != other.layer_count
        {
            complete_merge = false;
        } else if other.layer_count.is_some() {
            self.layer_count = other.layer_count;
        }

        if self.mip_count.is_some()
            && other.mip_count.is_some()
            && self.mip_count != other.mip_count
        {
            complete_merge = false;
        } else if other.mip_count.is_some() {
            self.mip_count = other.mip_count;
        }

        if self.extents.is_some() && other.extents.is_some() && self.extents != other.extents {
            complete_merge = false;
        } else if other.extents.is_some() {
            self.extents = other.extents;
        }

        self.aspect_flags |= other.aspect_flags;
        self.usage_flags |= other.usage_flags;
        self.create_flags |= other.create_flags;

        complete_merge
    }
/// Merge other's constraints into self. We will merge fields where we can and skip fields with
/// conflicts
Merge other's constraints into self. We will merge fields where we can and skip fields with
conflicts
Merge other ' s constraints into self . We will merge fields where we can and skip fields with conflicts
pub fn partial_merge(
        &mut self,
        other: &RenderGraphImageConstraint,
    ) -> bool {
        let mut complete_merge = true;
        if self.samples.is_some() && other.samples.is_some() && self.samples != other.samples {
            complete_merge = false;
        } else if other.samples.is_some() {
            self.samples = other.samples;
        }
        if self.format.is_some() && other.format.is_some() && self.format != other.format {
            complete_merge = false;
        } else if other.format.is_some() {
            self.format = other.format;
        }
        if self.layer_count.is_some()
            && other.layer_count.is_some()
            && self.layer_count != other.layer_count
        {
            complete_merge = false;
        } else if other.layer_count.is_some() {
            self.layer_count = other.layer_count;
        }
        if self.mip_count.is_some()
            && other.mip_count.is_some()
            && self.mip_count != other.mip_count
        {
            complete_merge = false;
        } else if other.mip_count.is_some() {
            self.mip_count = other.mip_count;
        }
        if self.extents.is_some() && other.extents.is_some() && self.extents != other.extents {
            complete_merge = false;
        } else if other.extents.is_some() {
            self.extents = other.extents;
        }
        self.aspect_flags |= other.aspect_flags;
        self.usage_flags |= other.usage_flags;
        self.create_flags |= other.create_flags;
        complete_merge
    }
pub fn partial_merge ( & mut self , other : & RenderGraphImageConstraint , ) -> bool { let mut complete_merge = true ; if self . samples . is_some ( ) && other . samples . is_some ( ) && self . samples != other . samples { complete_merge = false ; } else if other . samples . is_some ( ) { self . samples = other . samples ; } if self . format . is_some ( ) && other . format . is_some ( ) && self . format != other . format { complete_merge = false ; } else if other . format . is_some ( ) { self . format = other . format ; } if self . layer_count . is_some ( ) && other . layer_count . is_some ( ) && self . layer_count != other . layer_count { complete_merge = false ; } else if other . layer_count . is_some ( ) { self . layer_count = other . layer_count ; } if self . mip_count . is_some ( ) && other . mip_count . is_some ( ) && self . mip_count != other . mip_count { complete_merge = false ; } else if other . mip_count . is_some ( ) { self . mip_count = other . mip_count ; } if self . extents . is_some ( ) && other . extents . is_some ( ) && self . extents != other . extents { complete_merge = false ; } else if other . extents . is_some ( ) { self . extents = other . extents ; } self . aspect_flags |= other . aspect_flags ; self . usage_flags |= other . usage_flags ; self . create_flags |= other . create_flags ; complete_merge }
Merge other's constraints into self.
Merge other ' s constraints into self .
&mut self
other
&RenderGraphImageConstraint
&mut self
other
&RenderGraphImageConstraint