Updated the image gradient component to use a streaming image asset

Signed-off-by: Chris Galvan <chgalvan@amazon.com>
This commit is contained in:
Chris Galvan
2022-02-03 12:29:18 -06:00
parent 65e651388c
commit 6322dd5397
10 changed files with 150 additions and 43 deletions
@@ -7,6 +7,7 @@
*/
#include <Atom/RPI.Reflect/Image/Image.h>
#include <Atom/RPI.Reflect/Image/StreamingImageAsset.h>
#include <AzCore/Component/ComponentApplicationBus.h>
@@ -223,9 +224,9 @@ namespace ImageProcessingAtom
{
AZStd::string targetExtension = entry->GetExtension();
for (int i = 0; i < s_TotalSupportedImageExtensions; i++)
for (int i = 0; i < AZ::RPI::s_TotalSupportedImageExtensions; i++)
{
if (AZStd::wildcard_match(s_SupportedImageExtensions[i], targetExtension.c_str()))
if (AZStd::wildcard_match(AZ::RPI::s_SupportedImageExtensions[i], targetExtension.c_str()))
{
return true;
}