Removed const_cast now that we've switched from array_view to span

Signed-off-by: Chris Galvan <chgalvan@amazon.com>
This commit is contained in:
Chris Galvan
2022-01-21 15:32:30 -06:00
parent c02061e88d
commit 1e591ab019
@@ -385,7 +385,7 @@ namespace AZ
{
size_t imageDataIndex = (y * width * pixelSize) + (x * pixelSize);
auto& outValue = const_cast<float&>(outValues[outValuesIndex++]);
auto& outValue = outValues[outValuesIndex++];
outValue = Internal::RetrieveFloatValue(imageData.data(), imageDataIndex, imageDescriptor.m_format);
}
}
@@ -412,7 +412,7 @@ namespace AZ
{
size_t imageDataIndex = (y * width * pixelSize) + (x * pixelSize);
auto& outValue = const_cast<AZ::u32&>(outValues[outValuesIndex++]);
auto& outValue = outValues[outValuesIndex++];
outValue = Internal::RetrieveUintValue(imageData.data(), imageDataIndex, imageDescriptor.m_format);
}
}
@@ -439,7 +439,7 @@ namespace AZ
{
size_t imageDataIndex = (y * width * pixelSize) + (x * pixelSize);
auto& outValue = const_cast<AZ::s32&>(outValues[outValuesIndex++]);
auto& outValue = outValues[outValuesIndex++];
outValue = Internal::RetrieveIntValue(imageData.data(), imageDataIndex, imageDescriptor.m_format);
}
}