[PATCH 4/5] d3d11/tests: Simplify test_cb_relative_addressing() a bit.
Matteo Bruni
mbruni at codeweavers.com
Mon Feb 11 11:21:06 CST 2019
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
The next patch would require this test to set vertex buffer stride in
the test context but, as it turns out, in this case there is no need
to create a specific input layout at all.
dlls/d3d11/tests/d3d11.c | 8 --------
1 file changed, 8 deletions(-)
diff --git a/dlls/d3d11/tests/d3d11.c b/dlls/d3d11/tests/d3d11.c
index 3c870c27e77..27b0775cea1 100644
--- a/dlls/d3d11/tests/d3d11.c
+++ b/dlls/d3d11/tests/d3d11.c
@@ -14816,10 +14816,6 @@ static void test_cb_relative_addressing(void)
ID3D11Device *device;
HRESULT hr;
- static const D3D11_INPUT_ELEMENT_DESC layout_desc[] =
- {
- {"POSITION", 0, DXGI_FORMAT_R32G32_FLOAT, 0, 0, D3D11_INPUT_PER_VERTEX_DATA, 0},
- };
static const DWORD vs_code[] =
{
#if 0
@@ -14932,10 +14928,6 @@ float4 main(const ps_in v) : SV_TARGET
device = test_context.device;
context = test_context.immediate_context;
- hr = ID3D11Device_CreateInputLayout(device, layout_desc, ARRAY_SIZE(layout_desc),
- vs_code, sizeof(vs_code), &test_context.input_layout);
- ok(SUCCEEDED(hr), "Failed to create input layout, hr %#x.\n", hr);
-
colors_cb = create_buffer(device, D3D11_BIND_CONSTANT_BUFFER, sizeof(colors), &colors);
index_cb = create_buffer(device, D3D11_BIND_CONSTANT_BUFFER, sizeof(index), NULL);
--
2.19.2
More information about the wine-devel
mailing list