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

d3d11: Implement ID3D11UnorderedAccessView interface.

parent 006ff5aa
......@@ -220,6 +220,22 @@ struct d3d_shader_resource_view *unsafe_impl_from_ID3D11ShaderResourceView(
struct d3d_shader_resource_view *unsafe_impl_from_ID3D10ShaderResourceView(
ID3D10ShaderResourceView *iface) DECLSPEC_HIDDEN;
/* ID3D11UnorderedAccessView */
struct d3d11_unordered_access_view
{
ID3D11UnorderedAccessView ID3D11UnorderedAccessView_iface;
LONG refcount;
struct wined3d_private_store private_store;
struct wined3d_unordered_access_view *wined3d_view;
D3D11_UNORDERED_ACCESS_VIEW_DESC desc;
ID3D11Resource *resource;
ID3D11Device *device;
};
HRESULT d3d11_unordered_access_view_create(struct d3d_device *device, ID3D11Resource *resource,
const D3D11_UNORDERED_ACCESS_VIEW_DESC *desc, struct d3d11_unordered_access_view **view) DECLSPEC_HIDDEN;
/* ID3D11InputLayout, ID3D10InputLayout */
struct d3d_input_layout
{
......
......@@ -2114,9 +2114,18 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CreateShaderResourceView(ID3D11Dev
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateUnorderedAccessView(ID3D11Device *iface,
ID3D11Resource *resource, const D3D11_UNORDERED_ACCESS_VIEW_DESC *desc, ID3D11UnorderedAccessView **view)
{
FIXME("iface %p, resource %p, desc %p, view %p stub!\n", iface, resource, desc, view);
struct d3d_device *device = impl_from_ID3D11Device(iface);
struct d3d11_unordered_access_view *object;
HRESULT hr;
return E_NOTIMPL;
TRACE("iface %p, resource %p, desc %p, view %p.\n", iface, resource, desc, view);
if (FAILED(hr = d3d11_unordered_access_view_create(device, resource, desc, &object)))
return hr;
*view = &object->ID3D11UnorderedAccessView_iface;
return S_OK;
}
static HRESULT STDMETHODCALLTYPE d3d11_device_CreateRenderTargetView(ID3D11Device *iface,
......
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