Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRED binding always returns null data #457

Open
DeadMG opened this issue Sep 24, 2024 · 0 comments
Open

DRED binding always returns null data #457

DeadMG opened this issue Sep 24, 2024 · 0 comments

Comments

@DeadMG
Copy link

DeadMG commented Sep 24, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant