diff options
Diffstat (limited to 'tools/render-test/shader-input-layout.h')
| -rw-r--r-- | tools/render-test/shader-input-layout.h | 5 |
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; } |
