mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
libs/vkd3d: Implement d3d12_resource_GetHeapProperties().
This commit is contained in:
parent
20d4cf551b
commit
489abe870c
@ -572,10 +572,17 @@ static HRESULT STDMETHODCALLTYPE d3d12_resource_ReadFromSubresource(ID3D12Resour
|
|||||||
static HRESULT STDMETHODCALLTYPE d3d12_resource_GetHeapProperties(ID3D12Resource *iface,
|
static HRESULT STDMETHODCALLTYPE d3d12_resource_GetHeapProperties(ID3D12Resource *iface,
|
||||||
D3D12_HEAP_PROPERTIES *heap_properties, D3D12_HEAP_FLAGS *flags)
|
D3D12_HEAP_PROPERTIES *heap_properties, D3D12_HEAP_FLAGS *flags)
|
||||||
{
|
{
|
||||||
FIXME("iface %p, heap_properties %p, flags %p stub!\n",
|
struct d3d12_resource *resource = impl_from_ID3D12Resource(iface);
|
||||||
|
|
||||||
|
TRACE("iface %p, heap_properties %p, flags %p.\n",
|
||||||
iface, heap_properties, flags);
|
iface, heap_properties, flags);
|
||||||
|
|
||||||
return E_NOTIMPL;
|
if (heap_properties)
|
||||||
|
*heap_properties = resource->heap_properties;
|
||||||
|
if (flags)
|
||||||
|
*flags = resource->heap_flags;
|
||||||
|
|
||||||
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct ID3D12ResourceVtbl d3d12_resource_vtbl =
|
static const struct ID3D12ResourceVtbl d3d12_resource_vtbl =
|
||||||
@ -691,6 +698,7 @@ static HRESULT d3d12_committed_resource_init(struct d3d12_resource *resource, st
|
|||||||
resource->map_data = NULL;
|
resource->map_data = NULL;
|
||||||
|
|
||||||
resource->heap_properties = *heap_properties;
|
resource->heap_properties = *heap_properties;
|
||||||
|
resource->heap_flags = heap_flags;
|
||||||
resource->initial_state = initial_state;
|
resource->initial_state = initial_state;
|
||||||
|
|
||||||
resource->device = device;
|
resource->device = device;
|
||||||
|
@ -165,6 +165,7 @@ struct d3d12_resource
|
|||||||
void *map_data;
|
void *map_data;
|
||||||
|
|
||||||
D3D12_HEAP_PROPERTIES heap_properties;
|
D3D12_HEAP_PROPERTIES heap_properties;
|
||||||
|
D3D12_HEAP_FLAGS heap_flags;
|
||||||
D3D12_RESOURCE_STATES initial_state;
|
D3D12_RESOURCE_STATES initial_state;
|
||||||
|
|
||||||
struct d3d12_device *device;
|
struct d3d12_device *device;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user