[PATCH vkd3d 1/7] tests: Test a texture with format DXGI_FORMAT_UNKNOWN in test_create_committed_resource().
Conor McCarthy
cmccarthy at codeweavers.com
Mon Jan 17 23:07:54 CST 2022
Signed-off-by: Conor McCarthy <cmccarthy at codeweavers.com>
---
tests/d3d12.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tests/d3d12.c b/tests/d3d12.c
index 9d4fb7d4..0702573b 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);
--
2.34.1
More information about the wine-devel
mailing list