Vortice.Windows icon indicating copy to clipboard operation
Vortice.Windows copied to clipboard

DRED binding always returns null data

Open DeadMG opened this issue 4 months ago • 0 comments

To reproduce, write some crappy code that crashes the GPU driver. Try to retrieve data using ID3D12DeviceRemovedExtendedData. GetAutoBreadcrumbsOutput always produces a structure with NULL head node. This is because the __MarshalFrom method is delegated to the head node's __MarshalFrom method, but in the default construction this is always null, so no marshalling ever occurs.

This affects ID3D12DeviceRemovedExtendedData1::GetAutoBreadcrumbsOutput1 as well.

I also note that usually there is a direct property getter in these cases, for example the options structs on ID3D12Device, but there doesn't seem to be one in the DRED interfaces. It's not really important unless these getters are meant to be automated.

DeadMG avatar Sep 24 '24 17:09 DeadMG