mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
libs/vkd3d: Accept D3D12_ROOT_SIGNATURE_DESC directly only when all bits of "bytecode_length" are set.
This commit is contained in:
@@ -719,7 +719,7 @@ static HRESULT STDMETHODCALLTYPE d3d12_device_CreateRootSignature(ID3D12Device *
|
|||||||
if (node_mask && node_mask != 1)
|
if (node_mask && node_mask != 1)
|
||||||
FIXME("Ignoring node mask 0x%08x.\n", node_mask);
|
FIXME("Ignoring node mask 0x%08x.\n", node_mask);
|
||||||
|
|
||||||
if (bytecode_length != ~0u)
|
if (bytecode_length != ~(SIZE_T)0)
|
||||||
{
|
{
|
||||||
FIXME("Root signature byte code not supported.\n");
|
FIXME("Root signature byte code not supported.\n");
|
||||||
return E_NOTIMPL;
|
return E_NOTIMPL;
|
||||||
|
@@ -105,7 +105,7 @@ static HRESULT create_root_signature_(unsigned int line, ID3D12Device *device,
|
|||||||
static HRESULT create_root_signature_(unsigned int line, ID3D12Device *device,
|
static HRESULT create_root_signature_(unsigned int line, ID3D12Device *device,
|
||||||
const D3D12_ROOT_SIGNATURE_DESC *desc, ID3D12RootSignature **root_signature)
|
const D3D12_ROOT_SIGNATURE_DESC *desc, ID3D12RootSignature **root_signature)
|
||||||
{
|
{
|
||||||
return ID3D12Device_CreateRootSignature(device, 0, desc, ~0u,
|
return ID3D12Device_CreateRootSignature(device, 0, desc, ~(SIZE_T)0,
|
||||||
&IID_ID3D12RootSignature, (void **)root_signature);
|
&IID_ID3D12RootSignature, (void **)root_signature);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user