src/third_party/angle/src/libANGLE/renderer/vulkan/FramebufferVk.cpp
// Returns false if formats are not identical.  vkCmdResolveImage and resolve attachments both
// require identical formats between source and destination.  vkCmdBlitImage additionally requires
// the same for depth/stencil formats.
Returns false if formats are not identical.  vkCmdResolveImage and resolve attachments both
require identical formats between source and destination.  vkCmdBlitImage additionally requires
the same for depth/stencil formats.
Returns false if formats are not identical . vkCmdResolveImage and resolve attachments both require identical formats between source and destination . vkCmdBlitImage additionally requires the same for depth / stencil formats .
bool AreSrcAndDstFormatsIdentical(RenderTargetVk *srcRenderTarget, RenderTargetVk *dstRenderTarget)
{
    const vk::Format &srcFormat = srcRenderTarget->getImageFormat();
    const vk::Format &dstFormat = dstRenderTarget->getImageFormat();
    return srcFormat.vkImageFormat == dstFormat.vkImageFormat;
}
bool AreSrcAndDstFormatsIdentical ( RenderTargetVk * srcRenderTarget , RenderTargetVk * dstRenderTarget ) { const vk :: Format & srcFormat = srcRenderTarget -> getImageFormat ( ) ; const vk :: Format & dstFormat = dstRenderTarget -> getImageFormat ( ) ; return srcFormat . vkImageFormat == dstFormat . vkImageFormat ; }
Returns false if formats are not identical.
Returns false if formats are not identical .