Commit e7a56825 authored by Józef Kucia's avatar Józef Kucia Committed by Alexandre Julliard

d3d10core/tests: Modify existing test to cover case-insensitive input elements matching.

parent 04de570c
...@@ -6157,17 +6157,18 @@ static void test_il_append_aligned(void) ...@@ -6157,17 +6157,18 @@ static void test_il_append_aligned(void)
DWORD color; DWORD color;
HRESULT hr; HRESULT hr;
/* Semantic names are case-insensitive. */
static const D3D10_INPUT_ELEMENT_DESC layout_desc[] = static const D3D10_INPUT_ELEMENT_DESC layout_desc[] =
{ {
{"COLOR", 2, DXGI_FORMAT_R32G32_FLOAT, 1, D3D10_APPEND_ALIGNED_ELEMENT, {"CoLoR", 2, DXGI_FORMAT_R32G32_FLOAT, 1, D3D10_APPEND_ALIGNED_ELEMENT,
D3D10_INPUT_PER_INSTANCE_DATA, 2}, D3D10_INPUT_PER_INSTANCE_DATA, 2},
{"COLOR", 3, DXGI_FORMAT_R32G32_FLOAT, 2, D3D10_APPEND_ALIGNED_ELEMENT, {"ColoR", 3, DXGI_FORMAT_R32G32_FLOAT, 2, D3D10_APPEND_ALIGNED_ELEMENT,
D3D10_INPUT_PER_INSTANCE_DATA, 1}, D3D10_INPUT_PER_INSTANCE_DATA, 1},
{"POSITION", 0, DXGI_FORMAT_R32G32B32A32_FLOAT, 0, D3D10_APPEND_ALIGNED_ELEMENT, {"POSITION", 0, DXGI_FORMAT_R32G32B32A32_FLOAT, 0, D3D10_APPEND_ALIGNED_ELEMENT,
D3D10_INPUT_PER_VERTEX_DATA, 0}, D3D10_INPUT_PER_VERTEX_DATA, 0},
{"COLOR", 0, DXGI_FORMAT_R32G32_FLOAT, 2, D3D10_APPEND_ALIGNED_ELEMENT, {"ColoR", 0, DXGI_FORMAT_R32G32_FLOAT, 2, D3D10_APPEND_ALIGNED_ELEMENT,
D3D10_INPUT_PER_INSTANCE_DATA, 1}, D3D10_INPUT_PER_INSTANCE_DATA, 1},
{"COLOR", 1, DXGI_FORMAT_R32G32_FLOAT, 1, D3D10_APPEND_ALIGNED_ELEMENT, {"cOLOr", 1, DXGI_FORMAT_R32G32_FLOAT, 1, D3D10_APPEND_ALIGNED_ELEMENT,
D3D10_INPUT_PER_INSTANCE_DATA, 2}, D3D10_INPUT_PER_INSTANCE_DATA, 2},
}; };
static const DWORD vs_code[] = static const DWORD vs_code[] =
......
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