summaryrefslogtreecommitdiffstats
path: root/tools/render-test/shader-input-layout.h
diff options
context:
space:
mode:
authorSimon Kallweit <64953474+skallweitNV@users.noreply.github.com>2024-10-17 23:59:10 +0200
committerGitHub <noreply@github.com>2024-10-17 14:59:10 -0700
commitfa3287fb6ec38127bad8fe948fbc190e7a3d54b2 (patch)
tree6644ad1ddcdecfb5323c34423bd3056bc705936d /tools/render-test/shader-input-layout.h
parentee11a45ab672c57ad98092e29a10d3aba4efb6c6 (diff)
update slang-rhi (#5258)
* update slang-rhi * update render-test to use new slang-rhi apis --------- Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'tools/render-test/shader-input-layout.h')
-rw-r--r--tools/render-test/shader-input-layout.h5
1 files changed, 2 insertions, 3 deletions
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;
}