mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
libs/vkd3d: Add ID3D12GraphicsCommandList interface stub.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -167,12 +167,21 @@ static HRESULT STDMETHODCALLTYPE d3d12_device_CreateCommandList(ID3D12Device *if
|
||||
UINT node_mask, D3D12_COMMAND_LIST_TYPE type, ID3D12CommandAllocator *command_allocator,
|
||||
ID3D12PipelineState *initial_pipeline_state, REFIID riid, void **command_list)
|
||||
{
|
||||
FIXME("iface %p, node_mask 0x%08x, type %#x, command_allocator %p, "
|
||||
"initial_pipeline_state %p, riid %s, command_list %p stub!\n",
|
||||
struct d3d12_device *device = impl_from_ID3D12Device(iface);
|
||||
struct d3d12_command_list *object;
|
||||
HRESULT hr;
|
||||
|
||||
TRACE("iface %p, node_mask 0x%08x, type %#x, command_allocator %p, "
|
||||
"initial_pipeline_state %p, riid %s, command_list %p.\n",
|
||||
iface, node_mask, type, command_allocator,
|
||||
initial_pipeline_state, debugstr_guid(riid), command_list);
|
||||
|
||||
return E_NOTIMPL;
|
||||
if (FAILED(hr = d3d12_command_list_create(device, node_mask, type, command_allocator,
|
||||
initial_pipeline_state, &object)))
|
||||
return hr;
|
||||
|
||||
return return_interface((IUnknown *)&object->ID3D12GraphicsCommandList_iface,
|
||||
&IID_ID3D12GraphicsCommandList, riid, command_list);
|
||||
}
|
||||
|
||||
static HRESULT STDMETHODCALLTYPE d3d12_device_CheckFeatureSupport(ID3D12Device *iface,
|
||||
|
@@ -47,6 +47,21 @@ struct d3d12_command_allocator
|
||||
HRESULT d3d12_command_allocator_create(struct d3d12_device *device,
|
||||
D3D12_COMMAND_LIST_TYPE type, struct d3d12_command_allocator **allocator) DECLSPEC_HIDDEN;
|
||||
|
||||
/* ID3D12CommandList */
|
||||
struct d3d12_command_list
|
||||
{
|
||||
ID3D12GraphicsCommandList ID3D12GraphicsCommandList_iface;
|
||||
ULONG refcount;
|
||||
|
||||
D3D12_COMMAND_LIST_TYPE type;
|
||||
|
||||
struct d3d12_device *device;
|
||||
};
|
||||
|
||||
HRESULT d3d12_command_list_create(struct d3d12_device *device,
|
||||
UINT node_mask, D3D12_COMMAND_LIST_TYPE type, ID3D12CommandAllocator *allocator_iface,
|
||||
ID3D12PipelineState *initial_pipeline_state, struct d3d12_command_list **list) DECLSPEC_HIDDEN;
|
||||
|
||||
/* ID3D12CommandQueue */
|
||||
struct d3d12_command_queue
|
||||
{
|
||||
|
Reference in New Issue
Block a user