pub fn try_merge(
        &mut self,
        other: &RenderGraphImageConstraint,
    ) -> bool {
        if !self.can_merge(other) {
            return false;
        }

        if self.samples.is_none() && other.samples.is_some() {
            self.samples = other.samples;
        }
        if self.format.is_none() && other.format.is_some() {
            self.format = other.format;
        }
        if self.layer_count.is_none() && other.layer_count.is_some() {
            self.layer_count = other.layer_count;
        }
        if self.mip_count.is_none() && other.mip_count.is_some() {
            self.mip_count = other.mip_count;
        }
        if self.extents.is_none() && 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;

        true
    }
/// Merge other's constraints into self, but only if there are no conflicts. No modification
/// occurs if any conflict exists
Merge other's constraints into self, but only if there are no conflicts. No modification
occurs if any conflict exists
Merge other ' s constraints into self but only if there are no conflicts . No modification occurs if any conflict exists
pub fn try_merge(
        &mut self,
        other: &RenderGraphImageConstraint,
    ) -> bool {
        if !self.can_merge(other) {
            return false;
        }
        if self.samples.is_none() && other.samples.is_some() {
            self.samples = other.samples;
        }
        if self.format.is_none() && other.format.is_some() {
            self.format = other.format;
        }
        if self.layer_count.is_none() && other.layer_count.is_some() {
            self.layer_count = other.layer_count;
        }
        if self.mip_count.is_none() && other.mip_count.is_some() {
            self.mip_count = other.mip_count;
        }
        if self.extents.is_none() && 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;
        true
    }
pub fn try_merge ( & mut self , other : & RenderGraphImageConstraint , ) -> bool { if ! self . can_merge ( other ) { return false ; } if self . samples . is_none ( ) && other . samples . is_some ( ) { self . samples = other . samples ; } if self . format . is_none ( ) && other . format . is_some ( ) { self . format = other . format ; } if self . layer_count . is_none ( ) && other . layer_count . is_some ( ) { self . layer_count = other . layer_count ; } if self . mip_count . is_none ( ) && other . mip_count . is_some ( ) { self . mip_count = other . mip_count ; } if self . extents . is_none ( ) && 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 ; true }
Merge other's constraints into self, but only if there are no conflicts.
Merge other ' s constraints into self but only if there are no conflicts .
&mut self
other
&RenderGraphImageConstraint
&mut self
other
&RenderGraphImageConstraint