Calling of some directx12 functions always throw "invalid argument" exception.

Displame 21 Reputation points

I ran the code accompanied with Introduction to 3D Game Programming with DirectX 12 on my computer, but it always throw exception like this:

The Chinese there means something like "Invalid argument".

The return value of mCommandList->close() should be -2147024809 in decimal, it's a HRESULT value. I've encountered similar problem in my own code many times, and I recorded the return value.
But the code runs well months earlier without any modification. I wonder if some upgrade of my win10 may be the cause.
Thanks for your suggestion.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,974 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,483 questions
Windows 10 Compatibility
Windows 10 Compatibility
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Compatibility: The extent to which hardware or software adheres to an accepted standard.
460 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,466 Reputation points

    Hello Displame,

    You might need to use newer texture resources.

    For example:

    Hope this helps,
    Best regards,

    0 comments No comments