From fa3287fb6ec38127bad8fe948fbc190e7a3d54b2 Mon Sep 17 00:00:00 2001 From: Simon Kallweit <64953474+skallweitNV@users.noreply.github.com> Date: Thu, 17 Oct 2024 23:59:10 +0200 Subject: update slang-rhi (#5258) * update slang-rhi * update render-test to use new slang-rhi apis --------- Co-authored-by: Yong He --- tools/render-test/shader-input-layout.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tools/render-test/shader-input-layout.h') diff --git a/tools/render-test/shader-input-layout.h b/tools/render-test/shader-input-layout.h index 59aea2562..9d4b139c8 100644 --- a/tools/render-test/shader-input-layout.h +++ b/tools/render-test/shader-input-layout.h @@ -127,9 +127,8 @@ struct TextureData { clearSlices(); - FormatInfo formatSizeInfo; - rhiGetFormatInfo(format, &formatSizeInfo); - m_formatSize = uint8_t(formatSizeInfo.blockSizeInBytes / formatSizeInfo.pixelsPerBlock); + const FormatInfo& formatInfo = getFormatInfo(format); + m_formatSize = uint8_t(formatInfo.blockSizeInBytes / formatInfo.pixelsPerBlock); m_format = format; } -- cgit v1.2.3