From f368997deb955101e5ffef66d988959fe6b10ba9 Mon Sep 17 00:00:00 2001 From: Chris Galvan Date: Wed, 26 Jan 2022 19:06:57 -0600 Subject: [PATCH] Modified the passing of span in test Signed-off-by: Chris Galvan --- Gems/Atom/RPI/Code/Source/RPI.Public/RPIUtils.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Gems/Atom/RPI/Code/Source/RPI.Public/RPIUtils.cpp b/Gems/Atom/RPI/Code/Source/RPI.Public/RPIUtils.cpp index ecca215536..2dd2885dff 100644 --- a/Gems/Atom/RPI/Code/Source/RPI.Public/RPIUtils.cpp +++ b/Gems/Atom/RPI/Code/Source/RPI.Public/RPIUtils.cpp @@ -207,12 +207,11 @@ namespace AZ template T GetSubImagePixelValueInternal(const AZ::Data::Asset& imageAsset, uint32_t x, uint32_t y, uint32_t componentIndex, uint32_t mip, uint32_t slice) { - AZStd::array values = { aznumeric_cast(0) }; + AZStd::array values{ aznumeric_cast(0) }; auto topLeft = AZStd::make_pair(x, y); auto bottomRight = AZStd::make_pair(x + 1, y + 1); - AZStd::span valueSpan(values.begin(), values.size()); - GetSubImagePixelValues(imageAsset, topLeft, bottomRight, valueSpan, componentIndex, mip, slice); + GetSubImagePixelValues(imageAsset, topLeft, bottomRight, AZStd::span(values), componentIndex, mip, slice); return values[0]; }