mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
libs/vkd3d: Accept D3D12_ROOT_SIGNATURE_DESC directly only when all bits of "bytecode_length" are set.
This commit is contained in:
parent
f530155ff1
commit
a22b594c0a
@ -719,7 +719,7 @@ static HRESULT STDMETHODCALLTYPE d3d12_device_CreateRootSignature(ID3D12Device *
|
||||
if (node_mask && node_mask != 1)
|
||||
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");
|
||||
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,
|
||||
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);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user