From cb68ea1c5a1d04d9bb6d4889b31bfbba27a408eb Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Thu, 9 Jun 2022 18:50:36 +0530 Subject: [PATCH vkd3d] include: Add ID3D12Device2 declaration in vkd3d_d3d12.idl. Signed-off-by: Biswapriyo Nath --- include/vkd3d_d3d12.idl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/include/vkd3d_d3d12.idl b/include/vkd3d_d3d12.idl index 5190b9d..4d96d25 100644 --- a/include/vkd3d_d3d12.idl +++ b/include/vkd3d_d3d12.idl @@ -1641,6 +1641,12 @@ typedef struct D3D12_COMPUTE_PIPELINE_STATE_DESC D3D12_PIPELINE_STATE_FLAGS Flags; } D3D12_COMPUTE_PIPELINE_STATE_DESC; +typedef struct D3D12_PIPELINE_STATE_STREAM_DESC +{ + SIZE_T SizeInBytes; + void *pPipelineStateSubobjectStream; +} D3D12_PIPELINE_STATE_STREAM_DESC; + typedef enum D3D12_COMMAND_LIST_TYPE { D3D12_COMMAND_LIST_TYPE_DIRECT = 0, @@ -2538,6 +2544,20 @@ interface ID3D12Device1 : ID3D12Device const D3D12_RESIDENCY_PRIORITY *priorities); } +[ + uuid(30baa41e-b15b-475c-a0bb-1af5c5b64328), + object, + local, + pointer_default(unique) +] +interface ID3D12Device2 : ID3D12Device1 +{ + HRESULT CreatePipelineState( + [in] const D3D12_PIPELINE_STATE_STREAM_DESC *desc, + [in] REFIID riid, + [out, iid_is(riid)] void **pipeline_state); +} + [ uuid(34ab647b-3cc8-46ac-841b-c0965645c046), object, -- 2.36.1