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

d3d11/tests: Check that shader resource views implement ID3D10ShaderResourceView1.

parent 0ce1d59a
......@@ -1282,6 +1282,10 @@ static void test_create_shader_resource_view(void)
ok(SUCCEEDED(hr) || broken(hr == E_NOINTERFACE) /* Not available on all Windows versions. */,
"Shader resource view should implement ID3D10ShaderResourceView.\n");
if (SUCCEEDED(hr)) IUnknown_Release(iface);
hr = ID3D11ShaderResourceView_QueryInterface(srview, &IID_ID3D10ShaderResourceView1, (void **)&iface);
ok(SUCCEEDED(hr) || broken(hr == E_NOINTERFACE) /* Not available on all Windows versions. */,
"Shader resource view should implement ID3D10ShaderResourceView1.\n");
if (SUCCEEDED(hr)) IUnknown_Release(iface);
ID3D11ShaderResourceView_Release(srview);
ID3D11Buffer_Release(buffer);
......@@ -1308,6 +1312,10 @@ static void test_create_shader_resource_view(void)
ok(SUCCEEDED(hr) || broken(hr == E_NOINTERFACE) /* Not available on all Windows versions. */,
"Shader resource view should implement ID3D10ShaderResourceView.\n");
if (SUCCEEDED(hr)) IUnknown_Release(iface);
hr = ID3D11ShaderResourceView_QueryInterface(srview, &IID_ID3D10ShaderResourceView1, (void **)&iface);
ok(SUCCEEDED(hr) || broken(hr == E_NOINTERFACE) /* Not available on all Windows versions. */,
"Shader resource view should implement ID3D10ShaderResourceView1.\n");
if (SUCCEEDED(hr)) IUnknown_Release(iface);
ID3D11ShaderResourceView_GetDesc(srview, &srv_desc);
ok(srv_desc.Format == texture_desc.Format, "Got unexpected format %#x.\n", srv_desc.Format);
......
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