Commit 2515c08b authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

d3d10core/tests: Add a test for creating SRV for resource without D3D10_BIND_SHADER_RESOURCE.

parent dcba4ab5
......@@ -3578,6 +3578,17 @@ static void test_create_shader_resource_view(void)
ID3D10ShaderResourceView_Release(srview);
ID3D10Buffer_Release(buffer);
/* Without D3D10_BIND_SHADER_RESOURCE. */
buffer = create_buffer(device, 0, 1024, NULL);
hr = ID3D10Device_CreateShaderResourceView(device, (ID3D10Resource *)buffer, &srv_desc, &srview);
todo_wine
ok(hr == E_INVALIDARG, "Got unexpected hr %#x.\n", hr);
if (SUCCEEDED(hr))
ID3D10ShaderResourceView_Release(srview);
ID3D10Buffer_Release(buffer);
texture2d_desc.Width = 512;
texture2d_desc.Height = 512;
texture2d_desc.SampleDesc.Count = 1;
......
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