Fix LyShine debug display to work with Atom (#6516)
* LyShine cleanup pass for Atom conversion Signed-off-by: abrmich <abrmich@amazon.com> * Add GHI numbers to comments Signed-off-by: abrmich <abrmich@amazon.com> * Fix debug texture data Signed-off-by: abrmich <abrmich@amazon.com> * Fix debug canvas and draw call data Signed-off-by: abrmich <abrmich@amazon.com> * Add GHI issue Signed-off-by: abrmich <abrmich@amazon.com> * Address PR feedback Signed-off-by: abrmich <abrmich@amazon.com> * Remove unused variable Signed-off-by: abrmich <abrmich@amazon.com>
This commit is contained in:
@@ -122,14 +122,10 @@ namespace LyShine
|
||||
uint32_t isClampTextureMode = 0;
|
||||
for (int i = 0; i < m_numTextures; ++i)
|
||||
{
|
||||
const AZ::RHI::ImageView* imageView = m_textures[i].m_texture ? m_textures[i].m_texture->GetImageView() : nullptr;
|
||||
|
||||
if (!imageView)
|
||||
{
|
||||
// Default to white texture
|
||||
auto image = AZ::RPI::ImageSystemInterface::Get()->GetSystemImage(AZ::RPI::SystemImage::White);
|
||||
imageView = image->GetImageView();
|
||||
}
|
||||
// Default to white texture
|
||||
const AZ::Data::Instance<AZ::RPI::Image>& image = m_textures[i].m_texture ? m_textures[i].m_texture
|
||||
: AZ::RPI::ImageSystemInterface::Get()->GetSystemImage(AZ::RPI::SystemImage::White);
|
||||
const AZ::RHI::ImageView* imageView = image->GetImageView();
|
||||
|
||||
if (imageView)
|
||||
{
|
||||
@@ -138,6 +134,9 @@ namespace LyShine
|
||||
{
|
||||
isClampTextureMode |= (1 << i);
|
||||
}
|
||||
#ifndef _RELEASE
|
||||
uiRenderer->DebugUseTexture(image);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user