summaryrefslogtreecommitdiff
path: root/tools/render-test/shader-input-layout.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/render-test/shader-input-layout.h')
-rw-r--r--tools/render-test/shader-input-layout.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/render-test/shader-input-layout.h b/tools/render-test/shader-input-layout.h
index fe835a7f1..78d545114 100644
--- a/tools/render-test/shader-input-layout.h
+++ b/tools/render-test/shader-input-layout.h
@@ -41,7 +41,7 @@ struct InputTextureDesc
int size = 4;
int mipMapCount = 0; ///< 0 means the maximum number of mips will be bound
- Format format = Format::RGBA_Unorm_UInt8;
+ Format format = Format::R8G8B8A8_UNORM;
InputTextureContent content = InputTextureContent::One;
};
@@ -111,7 +111,9 @@ struct TextureData
{
clearSlices();
- m_formatSize = uint8_t(gfxGetFormatSize(format));
+ FormatInfo formatSizeInfo;
+ gfxGetFormatInfo(format, &formatSizeInfo);
+ m_formatSize = uint8_t(formatSizeInfo.blockSizeInBytes / formatSizeInfo.pixelsPerBlock);
m_format = format;
}