Conor McCarthy : tests: Test a texture with format DXGI_FORMAT_UNKNOWN in test_create_committed_resource().
Alexandre Julliard
julliard at winehq.org
Wed Jan 19 15:52:10 CST 2022
Module: vkd3d
Branch: master
Commit: b93edeccfd377c6ca0a6fc11b4cbfb513c354324
URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=b93edeccfd377c6ca0a6fc11b4cbfb513c354324
Author: Conor McCarthy <cmccarthy at codeweavers.com>
Date: Tue Jan 18 15:07:54 2022 +1000
tests: Test a texture with format DXGI_FORMAT_UNKNOWN in test_create_committed_resource().
Signed-off-by: Conor McCarthy <cmccarthy at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
tests/d3d12.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/d3d12.c b/tests/d3d12.c
index a448801..3540c9a 100644
--- a/tests/d3d12.c
+++ b/tests/d3d12.c
@@ -1736,6 +1736,12 @@ static void test_create_committed_resource(void)
ok(hr == E_INVALIDARG, "Got unexpected hr %#x.\n", hr);
resource_desc.SampleDesc.Count = 1;
+ resource_desc.Format = DXGI_FORMAT_UNKNOWN;
+ hr = ID3D12Device_CreateCommittedResource(device, &heap_properties, D3D12_HEAP_FLAG_NONE, &resource_desc,
+ D3D12_RESOURCE_STATE_RENDER_TARGET, &clear_value, &IID_ID3D12Resource, (void **)&resource);
+ ok(hr == E_INVALIDARG, "Got unexpected hr %#x.\n", hr);
+ resource_desc.Format = DXGI_FORMAT_R8G8B8A8_UNORM;
+
hr = ID3D12Device_CreateCommittedResource(device, &heap_properties, D3D12_HEAP_FLAG_NONE,
&resource_desc, D3D12_RESOURCE_STATE_RENDER_TARGET | D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE,
&clear_value, &IID_ID3D12Resource, (void **)&resource);
More information about the wine-cvs
mailing list