On Fri, 27 Sep 2019 at 15:23, Nikolay Sivov nsivov@codeweavers.com wrote:
@@ -17251,6 +17251,28 @@ static void test_create_unordered_access_view(void) ID3D11UnorderedAccessView_Release(uav); ID3D11Buffer_Release(buffer);
- /* Without D3D11_BIND_UNORDERED_ACCESS. */
- buffer_desc.ByteWidth = 1024;
- buffer_desc.Usage = D3D11_USAGE_DEFAULT;
- buffer_desc.BindFlags = 0;
- buffer_desc.CPUAccessFlags = 0;
- buffer_desc.MiscFlags = 0;
- buffer_desc.StructureByteStride = 0;
- hr = ID3D11Device_CreateBuffer(device, &buffer_desc, NULL, &buffer);
- ok(SUCCEEDED(hr), "Failed to create a buffer, hr %#x.\n", hr);
Why not "buffer = create_buffer(device, 0, 1024, NULL);"?