libs/vkd3d: Implement d3d12_resource_GetGPUVirtualAddress().

This commit is contained in:
Henri Verbeet 2016-09-28 12:56:02 +02:00
parent 8bb1a260d5
commit 5f91e2ded9
2 changed files with 5 additions and 2 deletions

View File

@ -528,9 +528,11 @@ static D3D12_RESOURCE_DESC * STDMETHODCALLTYPE d3d12_resource_GetDesc(ID3D12Reso
static D3D12_GPU_VIRTUAL_ADDRESS STDMETHODCALLTYPE d3d12_resource_GetGPUVirtualAddress(ID3D12Resource *iface)
{
FIXME("iface %p stub!\n", iface);
struct d3d12_resource *resource = impl_from_ID3D12Resource(iface);
return 0;
TRACE("iface %p.\n", iface);
return resource->u.gpu_address;
}
static HRESULT STDMETHODCALLTYPE d3d12_resource_WriteToSubresource(ID3D12Resource *iface,

View File

@ -52,6 +52,7 @@ struct d3d12_resource
union
{
D3D12_GPU_VIRTUAL_ADDRESS gpu_address;
VkBuffer vk_buffer;
VkImage vk_image;
} u;