Commit 9cec39f6 by Jamie Madill Committed by Commit Bot

D3D11: Convert the FL 9_3 vertex format table to constexpr.

This removes a static global map initialization. BUG=angleproject:1389 BUG=angleproject:1459 Change-Id: I6eb19f6649280e72682c6806ea0bf6eb70173984 Reviewed-on: https://chromium-review.googlesource.com/405487Reviewed-by: 's avatarYuly Novikov <ynovikov@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent 60e6edfa
...@@ -41,17 +41,18 @@ struct DXGIFormatSize ...@@ -41,17 +41,18 @@ struct DXGIFormatSize
}; };
const DXGIFormatSize &GetDXGIFormatSizeInfo(DXGI_FORMAT format); const DXGIFormatSize &GetDXGIFormatSizeInfo(DXGI_FORMAT format);
struct VertexFormat struct VertexFormat : angle::NonCopyable
{ {
VertexFormat(); constexpr VertexFormat();
VertexFormat(VertexConversionType conversionType, constexpr VertexFormat(VertexConversionType conversionType,
DXGI_FORMAT nativeFormat, DXGI_FORMAT nativeFormat,
VertexCopyFunction copyFunction); VertexCopyFunction copyFunction);
VertexConversionType conversionType; VertexConversionType conversionType;
DXGI_FORMAT nativeFormat; DXGI_FORMAT nativeFormat;
VertexCopyFunction copyFunction; VertexCopyFunction copyFunction;
}; };
const VertexFormat &GetVertexFormatInfo(gl::VertexFormatType vertexFormatType, const VertexFormat &GetVertexFormatInfo(gl::VertexFormatType vertexFormatType,
D3D_FEATURE_LEVEL featureLevel); D3D_FEATURE_LEVEL featureLevel);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment