Commit 80b957d5 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

d3d11/tests: Add a test for DXGI_FORMAT_R8G8_UINT support in vertex buffers.

parent c536da7f
......@@ -20619,6 +20619,11 @@ static void test_format_support(const D3D_FEATURE_LEVEL feature_level)
{DXGI_FORMAT_R16_UINT, D3D_FEATURE_LEVEL_9_1},
};
static const struct format_support vertex_buffers[] =
{
{DXGI_FORMAT_R8G8_UINT, D3D_FEATURE_LEVEL_10_0},
};
device_desc.feature_level = &feature_level;
device_desc.flags = 0;
if (!(device = create_device(&device_desc)))
......@@ -20685,6 +20690,10 @@ static void test_format_support(const D3D_FEATURE_LEVEL feature_level)
D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER, "index buffer");
check_format_support(format_support, feature_level,
vertex_buffers, ARRAY_SIZE(vertex_buffers),
D3D11_FORMAT_SUPPORT_IA_VERTEX_BUFFER, "vertex buffer");
check_format_support(format_support, feature_level,
display_format_support, ARRAY_SIZE(display_format_support),
D3D11_FORMAT_SUPPORT_DISPLAY, "display");
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