mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
demos: Remove hack for creating root signatures.
This commit is contained in:
15
demos/demo.h
15
demos/demo.h
@ -123,6 +123,21 @@ static inline void demo_blend_desc_init_default(D3D12_BLEND_DESC *desc)
|
||||
}
|
||||
}
|
||||
|
||||
static inline HRESULT demo_create_root_signature(ID3D12Device *device,
|
||||
const D3D12_ROOT_SIGNATURE_DESC *desc, ID3D12RootSignature **signature)
|
||||
{
|
||||
ID3DBlob *blob;
|
||||
HRESULT hr;
|
||||
|
||||
if (FAILED(hr = D3D12SerializeRootSignature(desc, D3D_ROOT_SIGNATURE_VERSION_1, &blob, NULL)))
|
||||
return hr;
|
||||
hr = ID3D12Device_CreateRootSignature(device, 0, ID3D10Blob_GetBufferPointer(blob),
|
||||
ID3D10Blob_GetBufferSize(blob), &IID_ID3D12RootSignature, (void **)signature);
|
||||
ID3D10Blob_Release(blob);
|
||||
|
||||
return hr;
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
#include "demo_win32.h"
|
||||
#else
|
||||
|
Reference in New Issue
Block a user