Moved the ImageProcessingDefines to the Include folder and added it to the header only target

Signed-off-by: Chris Galvan <chgalvan@amazon.com>
This commit is contained in:
Chris Galvan
2022-02-03 15:05:01 -06:00
parent 4e15cef2fc
commit 22f018c310
17 changed files with 33 additions and 34 deletions
@@ -7,7 +7,7 @@
*/
#include <GradientSignal/Components/ImageGradientComponent.h>
#include <Atom/RPI.Reflect/Image/Image.h>
#include <Atom/ImageProcessing/ImageProcessingDefines.h>
#include <AzCore/Asset/AssetManager.h>
#include <AzCore/Asset/AssetSerializer.h>
#include <AzCore/Debug/Profiler.h>
@@ -52,9 +52,9 @@ namespace GradientSignal
// We don't know what image format the original source was, so we need to loop through
// all the supported image extensions to check if they have a valid corresponding
// streaming image asset
for (int i = 0; i < AZ::RPI::s_TotalSupportedImageExtensions; i++)
for (int i = 0; i < ImageProcessingAtom::s_TotalSupportedImageExtensions; i++)
{
AZStd::string imageExtension(AZ::RPI::s_SupportedImageExtensions[i]);
AZStd::string imageExtension(ImageProcessingAtom::s_SupportedImageExtensions[i]);
// The image extensions are stored with a wildcard (e.g. *.png) so we need to strip that off first
AZ::StringFunc::Replace(imageExtension, "*", "");