On PCs without debug layer support D3D12GetDebugInterface fails and leaves debugController a null-pointer, causing crashes. In this case simply avoiding attempting to enable debug layers seems simplest
Also adds a check that device creation succeeds to improve error messages
On PCs without debug layer support
D3D12GetDebugInterface
fails and leavesdebugController
a null-pointer, causing crashes. In this case simply avoiding attempting to enable debug layers seems simplestAlso adds a check that device creation succeeds to improve error messages