Commit 81820494 by Jamie Madill

Don't use static const & locals for format tables.

This hits an unimplemented feature in Clang. Work around this by using values instead of references. BUG=angleproject:1160 Change-Id: I94b08d8fd9a09bbbfbe4bcd1b6f9d7f0031ce18d Reviewed-on: https://chromium-review.googlesource.com/308910Tested-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent bc781f31
...@@ -261,11 +261,11 @@ def get_texture_format_item(idx, texture_format): ...@@ -261,11 +261,11 @@ def get_texture_format_item(idx, texture_format):
else: else:
table_data += ' else if (' + texture_format["requirementsFcn"] + '(renderer11DeviceCaps))\n' table_data += ' else if (' + texture_format["requirementsFcn"] + '(renderer11DeviceCaps))\n'
table_data += ' {\n' table_data += ' {\n'
table_data += ' static const TextureFormat &textureFormat = GetD3D11FormatInfo(internalFormat,\n' table_data += ' static const TextureFormat textureFormat = GetD3D11FormatInfo(internalFormat,\n'
table_data += ' ' + texture_format[tex_format] + ',\n' table_data += ' ' + texture_format[tex_format] + ',\n'
table_data += ' ' + texture_format[srv_format] + ',\n' table_data += ' ' + texture_format[srv_format] + ',\n'
table_data += ' ' + texture_format[rtv_format] + ',\n' table_data += ' ' + texture_format[rtv_format] + ',\n'
table_data += ' ' + texture_format[dsv_format] + ');\n' table_data += ' ' + texture_format[dsv_format] + ');\n'
table_data += ' return textureFormat;\n' table_data += ' return textureFormat;\n'
table_data += ' }\n' table_data += ' }\n'
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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