d3d11/tests: Check that shader resource views implement ID3D10ShaderResourceView1.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0ce1d59a80
commit
64e02271c1
|
@ -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. */,
|
ok(SUCCEEDED(hr) || broken(hr == E_NOINTERFACE) /* Not available on all Windows versions. */,
|
||||||
"Shader resource view should implement ID3D10ShaderResourceView.\n");
|
"Shader resource view should implement ID3D10ShaderResourceView.\n");
|
||||||
if (SUCCEEDED(hr)) IUnknown_Release(iface);
|
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);
|
ID3D11ShaderResourceView_Release(srview);
|
||||||
ID3D11Buffer_Release(buffer);
|
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. */,
|
ok(SUCCEEDED(hr) || broken(hr == E_NOINTERFACE) /* Not available on all Windows versions. */,
|
||||||
"Shader resource view should implement ID3D10ShaderResourceView.\n");
|
"Shader resource view should implement ID3D10ShaderResourceView.\n");
|
||||||
if (SUCCEEDED(hr)) IUnknown_Release(iface);
|
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);
|
ID3D11ShaderResourceView_GetDesc(srview, &srv_desc);
|
||||||
ok(srv_desc.Format == texture_desc.Format, "Got unexpected format %#x.\n", srv_desc.Format);
|
ok(srv_desc.Format == texture_desc.Format, "Got unexpected format %#x.\n", srv_desc.Format);
|
||||||
|
|
Loading…
Reference in New Issue